2011-07-08 114 views
1

我试图获得授权发布流并获得离线访问,但我收到此错误。iOS Facebook授权

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

有人可以告诉我我失踪了什么?

回答

0

这只是删除行:

[self.fb对话框:@ “OAuth的” andDelegate:自我]。

并设置行

[自authorizeWithFBAppAuth:YES safariAuth:YES];

[自authorizeWithFBAppAuth:YES safariAuth:NO];