ios facebook sdk 4.0 ログインエラーコード304
facebook sdk v4.0をアップデートしました。
で、Using Custom Login UIsのチュートリアルによると
-(IBAction)facebookLoginClick:(id)sender {
FBSDKLoginManager *login = [[FBSDKLoginManager alloc] init];
[login logInWithReadPermissions:@[@"email"] handler:^(FBSDKLoginManagerLoginResult *result, NSError *error) {
if (error) {
// Process error
} else if (result.isCancelled) {
// Handle cancellations
} else {
// If you ask for multiple permissions at once, you
// should check if specific permissions missing
if ([result.grantedPermissions containsObject:@"email"]) {
// Do work
}
}
}];
}
しかし、結果は常にnilであり、エラーコードは304です、 **am I missing something?
64
3
iOSアプリを実行中にXcodeでFBアプリの詳細を変更すると発生しました。デバイスからアプリを削除し、新しいFBアプリの設定で再パブリッシュする必要があります。再コンパイルしただけでは、古いFB設定をクリアすることはできません
FBSessionの状態を確認します。
304は何も変わっていないことを表しています。おそらく、すでに何らかの形で認証されているため、304でnilを得ることは何も変わっていないことを意味します。