facebooker2 0.0.15 → 0.0.16
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/facebooker2.rb +1 -2
- data/lib/facebooker2/rails/helpers/javascript.rb +1 -2
- metadata +2 -2
data/lib/facebooker2.rb
CHANGED
@@ -3,7 +3,7 @@ require "mogli"
|
|
3
3
|
module Facebooker2
|
4
4
|
|
5
5
|
@oauth2 = true
|
6
|
-
@cookie_prefix = '
|
6
|
+
@cookie_prefix = 'fbsr_'
|
7
7
|
|
8
8
|
class NotConfigured < Exception; end
|
9
9
|
class << self
|
@@ -26,7 +26,6 @@ module Facebooker2
|
|
26
26
|
self.api_key = hash[:api_key]
|
27
27
|
self.secret = hash[:secret]
|
28
28
|
self.app_id = hash[:app_id]
|
29
|
-
self.cookie_prefix = 'fbsr_' unless hash[:oauth2].blank?
|
30
29
|
end
|
31
30
|
|
32
31
|
def self.load_facebooker_yaml
|
@@ -16,7 +16,6 @@ module Facebooker2
|
|
16
16
|
cookie = opts[:cookie].nil? ? true : opts[:cookie]
|
17
17
|
status = opts[:status].nil? ? true : opts[:status]
|
18
18
|
xfbml = opts[:xfbml].nil? ? true : opts[:xfbml]
|
19
|
-
oauth2 = Facebooker2.oauth2 ? true : false
|
20
19
|
channel_url = opts[:channel_url]
|
21
20
|
lang = opts[:locale] || 'en_US'
|
22
21
|
extra_js = capture(&proc) if block_given?
|
@@ -29,7 +28,7 @@ module Facebooker2
|
|
29
28
|
status : #{status}, // check login status
|
30
29
|
cookie : #{cookie}, // enable cookies to allow the server to access the session
|
31
30
|
#{"channelUrl : '#{channel_url}', // add channelURL to avoid IE redirect problems" unless channel_url.blank?}
|
32
|
-
|
31
|
+
oauth : true,
|
33
32
|
xfbml : #{xfbml} // parse XFBML
|
34
33
|
});
|
35
34
|
#{extra_js}
|