iOS 脸书授权
我试图获得发布流和离线访问的授权,但出现此错误。
而且它没有显示我想要获得的权限。我的代码如下:
self.fb = [[Facebook alloc] initWithAppId:@"xxxxxxxxxxxxxxxx"];
NSArray *permissions = [NSArray arrayWithObjects:@"offline_access", @"publish_stream", nil];
[self.fb authorize:permissions delegate:self];
[self.fb dialog:@"oauth" andDelegate:self];
有人可以告诉我我缺少什么吗?
Im trying to get authorization to publish stream and get offline access, but I am getting this error.
And it don't show the permissions that I want to get. My code is below:
self.fb = [[Facebook alloc] initWithAppId:@"xxxxxxxxxxxxxxxx"];
NSArray *permissions = [NSArray arrayWithObjects:@"offline_access", @"publish_stream", nil];
[self.fb authorize:permissions delegate:self];
[self.fb dialog:@"oauth" andDelegate:self];
Someone can tell me what I am missing?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
只是删除这一行:
[self.fbdialog:@"oauth"andDelegate:self];
并设置行
[selfauthorizeWithFBAppAuth:YES safariAuth:YES];
到
[selfauthorizeWithFBAppAuth:YES safariAuth:NO];
It was just delete the line:
[self.fb dialog:@"oauth" andDelegate:self];
and set the line
[self authorizeWithFBAppAuth:YES safariAuth:YES];
to
[self authorizeWithFBAppAuth:YES safariAuth:NO];