facebook_app 0.0.32 → 0.0.33
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.
@@ -4,7 +4,7 @@ track = (conversion_state) ->
|
|
4
4
|
window.removeAppPermissions = () ->
|
5
5
|
FB.api("/me/permissions", "delete", {}, () -> alert("Removed App Permission From Facebook"))
|
6
6
|
|
7
|
-
window.facebookLogin = (redirectUrl, permissions) ->
|
7
|
+
window.facebookLogin = (redirectUrl, permissions, offsiteRedirect=null) ->
|
8
8
|
track("see_permissions_dialogue")
|
9
9
|
FB.getLoginStatus (status) ->
|
10
10
|
if status.authResponse
|
@@ -20,6 +20,6 @@ window.facebookLogin = (redirectUrl, permissions) ->
|
|
20
20
|
window.location = redirectUrl
|
21
21
|
else
|
22
22
|
track("deny_permissions")
|
23
|
+
window.location = offsiteRedirect if offsiteRedirect
|
23
24
|
console.log "User denied permissions"
|
24
25
|
, {scope: permissions}
|
25
|
-
|
@@ -39,7 +39,7 @@ module FacebookSdkHelper
|
|
39
39
|
def uninstall_facebook_app_button
|
40
40
|
# hackish fix for route since engine in Rails 3.1 tries to double up
|
41
41
|
# the initial backslash
|
42
|
-
|
42
|
+
button_to_function("Uninstall App", "removeAppPermissions()")
|
43
43
|
end
|
44
44
|
|
45
45
|
def facebook_logout_button
|
data/lib/facebook_app/version.rb
CHANGED
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: facebook_app
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.0.
|
5
|
+
version: 0.0.33
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Jack Kinsella
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2011-11-
|
13
|
+
date: 2011-11-19 00:00:00 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rails
|