gpt4 book ai didi

iOS Facebook 授权

转载 作者:行者123 更新时间:2023-11-28 17:44:45 28 4
gpt4 key购买 nike

我试图获得发布流和离线访问的授权,但出现此错误。

enter image description here

而且它没有显示我想要获得的权限。我的代码如下:

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];

谁能告诉我我错过了什么?

最佳答案

只是删除了一行:

[self.fb dialog:@"oauth"andDelegate:self];

设置线路

[self authorizeWithFBAppAuth:YES safariAuth:YES];

[self authorizeWithFBAppAuth:YES safariAuth:NO];

关于iOS Facebook 授权,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6626371/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com