facebooker2 0.0.15 → 0.0.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/lib/facebooker2.rb CHANGED
@@ -3,7 +3,7 @@ require "mogli"
3
3
  module Facebooker2
4
4
 
5
5
  @oauth2 = true
6
- @cookie_prefix = 'fbs_'
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
- #{"oauth : true," if oauth2}
31
+ oauth : true,
33
32
  xfbml : #{xfbml} // parse XFBML
34
33
  });
35
34
  #{extra_js}
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 15
9
- version: 0.0.15
8
+ - 16
9
+ version: 0.0.16
10
10
  platform: ruby
11
11
  authors:
12
12
  - Mike Mangino