forked from Wizcorp/phonegap-facebook-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Start install script and rearrange things a bit
- Loading branch information
Dave Johnson
committed
Aug 16, 2011
1 parent
e9cef3b
commit f0ae249
Showing
17 changed files
with
122 additions
and
3,883 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,24 +1,24 @@ | |||
PG = ( typeof PG == 'undefined' ? {} : PG ); | PG = ( typeof PG == 'undefined' ? {} : PG ); | ||
PG.FB = { | PG.FB = { | ||
init: function(apiKey) { | init: function(apiKey) { | ||
PhoneGap.exec(null, null, 'com.facebook.phonegap.Connect', 'init', [apiKey]); | PhoneGap.exec(null, null, 'com.phonegap.facebook.Connect', 'init', [apiKey]); | ||
}, | }, | ||
login: function(a, b) { | login: function(a, b) { | ||
b = b || { perms: '' }; | b = b || { perms: '' }; | ||
PhoneGap.exec(function(e) { // login | PhoneGap.exec(function(e) { // login | ||
FB.Auth.setSession(e.session, 'connected'); | FB.Auth.setSession(e.session, 'connected'); | ||
if (a) a(e); | if (a) a(e); | ||
}, null, 'com.facebook.phonegap.Connect', 'login', b.perms.split(',') ); | }, null, 'com.phonegap.facebook.Connect', 'login', b.perms.split(',') ); | ||
}, | }, | ||
logout: function(cb) { | logout: function(cb) { | ||
PhoneGap.exec(function(e) { | PhoneGap.exec(function(e) { | ||
FB.Auth.setSession(null, 'notConnected'); | FB.Auth.setSession(null, 'notConnected'); | ||
if (cb) cb(e); | if (cb) cb(e); | ||
}, null, 'com.facebook.phonegap.Connect', 'logout', []); | }, null, 'com.phonegap.facebook.Connect', 'logout', []); | ||
}, | }, | ||
getLoginStatus: function(cb) { | getLoginStatus: function(cb) { | ||
PhoneGap.exec(function(e) { | PhoneGap.exec(function(e) { | ||
if (cb) cb(e); | if (cb) cb(e); | ||
}, null, 'com.facebook.phonegap.Connect', 'getLoginStatus', []); | }, null, 'com.phonegap.facebook.Connect', 'getLoginStatus', []); | ||
} | } | ||
}; | }; |
Oops, something went wrong.