doesfacebook 0.4.2 → 0.4.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -17,7 +17,11 @@ module DoesFacebookHelper
17
17
 
18
18
  # Return the current app callback URL
19
19
  def app_callback_url
20
- controller.send(:facebook_config)[:callback_url]
20
+ if request.ssl?
21
+ controller.send(:facebook_config)[:ssl_callback_url] || controller.send(:facebook_config)[:callback_url]
22
+ else
23
+ controller.send(:facebook_config)[:callback_url]
24
+ end
21
25
  end
22
26
 
23
27
  # Return the current app canvas name:
@@ -22,4 +22,5 @@ production:
22
22
  api_key: 1234567890abcdefghijklmnopqrsttuv
23
23
  secret_key: 1234567890abcdefghijklmnopqrsttuv
24
24
  canvas_name: your_canvas_name
25
- callback_url: http://your.dev.server.com/and/path
25
+ callback_url: http://your.server.com/and/path
26
+ ssl_callback_url: https://your.secure.server.com/and/path
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: doesfacebook
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.4.2
5
+ version: 0.4.3
6
6
  platform: ruby
7
7
  authors:
8
8
  - mccolin