2011-07-08 156 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];