开发者

iOS Facebook authorization

开发者 https://www.devze.com 2023-03-18 19:21 出处:网络
Im trying to get authorization to publish stream and get offline access, but I am getting this error.

Im trying to get authorization to publish stream and get offline access, but I am getting this error.

iOS Facebook authorization

And it don't show the permissions that I want to get. My code is below:

self.fb = [[Facebook alloc] initWithAppId:@"xxxxxxxxxxxxxxxx"];
NSArr开发者_运维技巧ay *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?


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

0

精彩评论

暂无评论...
验证码 换一张
取 消