7
7

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Facebook iOS SDKトラブルシュート

Last updated at Posted at 2014-08-25

Facebook iOS SDKを使っててエラーが返ってくるケースやその対応のまとめ。随時更新。

remote_app_id does not match stored id.

iOSアプリに指定されているBundleIDと、Facebookアプリで指定しているiOS Native AppのBundleIDが異なります。個々の設定を確認してみましょう。

Facebook Appの設定

fb.png

Xcodeの設定

xcode.png

参考

The app cannot ask for publish or manage permissions along with read permissions

Facebook iOS SDKを通じてFacebookアカウントのパーミッションを取得する際、読み込みと書き込みのパーミッションを同時に指定することが出来ない。例えば、書き込み→status_update, 読み込み→emailやabout_me等を同時に指定できない。

# import <Accounts/Accounts.h>

NSDictionary *options = @{
    ACFacebookAppIdKey : @"your-facebook-app-id",
    CFacebookAudienceKey : ACFacebookAudienceEveryone,
    ACFacebookPermissionsKey : @[
        @"status_update",  // emailと併記できない
        @"email"
    ]
};

ACAccountStore *account    = [[ACAccountStore alloc] init];
ACAccountType *accountType = [account accountTypeWithAccountTypeIdentifier:ACAccountTypeIdentifierFacebook];

[account requestAccessToAccountsWithType:accountType
                                 options:options
                              completion:nil];

対応方法調査中…。

7
7
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
7
7

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?