[英]Publish permission returns “installed” and “public_profile” as requested permission
I requested @"publish_stream",@"publish_checkins" permissions. 我请求@“ publish_stream”,@“ publish_checkins”权限。 But when I print the active session's permissions, It displays "installed", "public_profile" as requested permissions. 但是,当我打印活动会话的权限时,它将显示“已安装”,“ public_profile”作为请求的权限。 Thus I am unable to use below condition and it opens login screen again on active session. 因此,我无法使用以下条件,它会在活动会话中再次打开登录屏幕。
if([[[FBSession activeSession] permissions] indexOfObject:@"publish_stream"] == NSNotFound || [[[FBSession activeSession] permissions] indexOfObject:@"publish_checkins"] == NSNotFound)
This was observed in facebook sdk 3.14.0. 这是在Facebook SDK 3.14.0中观察到的。 I was using facebook sdk 3.7.1 which works just fine. 我使用的是Facebook sdk 3.7.1,效果很好。
What am I doing wrong and How could I resolve this. 我在做什么错,我该如何解决。
Thanks. 谢谢。
If your app was registered after April 30th 2014, you're using Graph API v2.0. 如果您的应用在2014年4月30日之后注册,则说明您使用的是Graph API v2.0。 To use non-basic permission with non-admin users, you'll need to get your app reviewed by facebook. 要对非管理员用户使用非基本权限,您需要让Facebook审核您的应用。
Have a look at my answer here: Facebook email permission ios 在这里看看我的答案: Facebook电子邮件权限ios
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.