Facebook Javascript Prompt Publish After Install
I am using Facebook connect and was wondering how I could prompt for a stream publish after app installation. Not every time you login. Here is my code on the login, I don't know how I could detect if the user just installed the app as opposed t开发者_如何学Goo is just logging in through this. Then what should I use for the publish prompt? Thanks
FB.login(function(response)
{
if (response.authResponse)
{
var accessToken = response.authResponse.accessToken;
}
},{scope:'email,publish_stream'});
You can place your code to FB.getLoginStatus in first if block. Or you can subscribe to auth.login https://developers.facebook.com/docs/reference/javascript/FB.getLoginStatus/
精彩评论