Facebook Javascript 安装后提示发布
我正在使用 Facebook connect,想知道如何在应用程序安装后提示发布流。不是每次登录的时候。这是我的登录代码,我不知道如何检测用户是否刚刚安装了该应用程序,而不是只是通过此登录。那么我应该使用什么来发布提示呢?谢谢
FB.login(function(response)
{
if (response.authResponse)
{
var accessToken = response.authResponse.accessToken;
}
},{scope:'email,publish_stream'});
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 to 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'});
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以将代码放置到第一个 if 块中的 FB.getLoginStatus 中。或者您可以订阅 auth.login
https://developers.facebook.com/docs/reference/javascript/FB。获取登录状态/
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/