开发者

iOS Facebook authorization

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜