[英]Facebook Login Invalid Scope
I'm using Facebook login, and all of a sudden it stopped working saying "Invalid Scope: user_Friends".我正在使用 Facebook 登录,突然间它停止工作,说“无效范围:user_Friends”。
I thought this error was because of the upgrade of the Graph API from v1.0 to v2.0 but my SDK is on the version 3.18 which already comes with GraphAPI v2.0我认为这个错误是因为 Graph API 从 v1.0 升级到 v2.0 但我的 SDK 是 3.18 版本,它已经随 GraphAPI v2.0 一起提供
does any one knows what am I doing wrong?有谁知道我做错了什么? Do I need to make any modifications to be compatible with GraphAPI v2.0?
我是否需要进行任何修改才能与 GraphAPI v2.0 兼容?
this is my code I ask for permissions这是我请求权限的代码
- (void)viewDidLoad
{
[super viewDidLoad];
originalFrame = menuBG.frame;
NSLog( @"### running FB sdk version: %@", [FBSettings sdkVersion] );
if (FBSession.activeSession.isOpen)
{
NSLog(@"Is Connected");
flagFaceCon = YES;
}
else
{
flagFaceCon = NO;
NSLog(@"Is NOT Connected");
}
loginView.readPermissions = @[@"public_profile", @"email", @"user_Friends"];
}
You may also get this error if your app is public but it hasn't been app reviewed yet.如果您的应用是公开的但尚未经过应用审核,您也可能会收到此错误。 Though the docs don't make this entirely obvious.
尽管文档并没有使这完全显而易见。 It's a bit fine-print and the error message doesn't clue you into that.
它有点小,错误消息并没有让您了解这一点。
try尝试
user_friends
not不是
user_Friends
我用于范围 user_Friends,但正确的是 user_friends(小写)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.