Facebook SDK登录对话框出现两次 [英] Facebook SDK Login dialog appears twice
问题描述
在我的项目是下面的代码,它发送一些消息到用户feed:
In my project is the next code which sends some message to user feed:
[facebook authorize:permissions delegate:self];
[facebook dialog:@"feed" andParams:params andDelegate:self];
但是当我用这个代码调用函数时,登录对话框出现两次。我如何解决这个问题?感谢
But when I call function with this code, login dialog appears twice. How can I solve this problem? Thanks
推荐答案
登录对话框不会出现两次。两个登录对话框同时显示。上述两行都将打开一个对话框。所以如果你把这些行一起,两个对话框将一起打开。如果你还没有登录到 Facebook
,显然这两个对话框都会打开登录页面。
Login dialog is not appearing twice. Two Login dialogs are appearing at the same time. Both the above lines will open a dialog. So if you call those lines together, two dialogs will be opened together. If you are not already logged in to Facebook
, obviously both the dialogs will open the Login page.
[facebook authorize:permissions delegate:self];
登录后授权结束,请致电
Once you logged in and the authorization is over, call
[facebook dialog:@"feed" andParams:params andDelegate:self];
这篇关于Facebook SDK登录对话框出现两次的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!