Created
March 16, 2012 19:39
-
-
Save spangenberg/2052120 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
FB.init({ appId: "1234", nativeInterface: CDV.FB, useCachedDialogs: false }); | |
FB.login(function(response) { | |
if (response.session) { | |
alert('logged in'); | |
} else { | |
alert('not logged in'); | |
} | |
}, { scope: "publish_stream" }); | |
FB.api('/me/feed', 'post', {message: "FooBar!}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment