即使用户按下即可拒绝许可

时间:2014-01-21 06:09:49

标签: ios facebook

        PO (self.ACAccounts);
        PO([self dicReadOptions]);
        [self.ACAstore requestAccessToAccountsWithType:self.ACAccounts options:[self dicReadOptions] completion:^(BOOL granted, NSError *error) {
            self.bPermissionToAccessStoreGranted=granted;
            [self vContinue];
        }];

2014-01-21 12:59:20.947 [460:60b] self.ACAccounts: identifier: com.apple.facebook
description: Facebook
objectID: x-coredata://5E844BD2-BC4C-4807-924F-F6A6ACBA9F45/AccountType/p5
supportsAuthentication YES
supportsMultipleAccounts NO
supportedDataclasses {(
    "com.apple.Dataclass.Calendars",
    "com.apple.Dataclass.Contacts"
)}
syncableDataclasses (null)
2014-01-21 12:59:35.490 [460:60b] [self dicReadOptions]: {
    ACFacebookAppIdKey = 115372328641884;
    ACFacebookAudienceKey = everyone;
    ACFacebookPermissionsKey =     (
        "user_about_me",
        "friends_about_me",
        "user_activities",
        "friends_activities",
        "user_birthday",
        "friends_birthday",
        "user_checkins",
        "friends_checkins",
        "user_education_history",
        "friends_education_history",
        "user_events",
        "friends_events",
        "user_groups",
        "friends_groups",
        "user_hometown",
        "friends_hometown",
        "user_interests",
        "friends_interests",
        "user_likes",
        "friends_likes",
        "user_notes",
        "friends_notes",
        "user_online_presence",
        "friends_online_presence",
        "user_interests",
        "friends_interests",
        "user_likes",
        "friends_likes",
        "user_notes",
        "friends_notes",
        "user_online_presence",
        "friends_online_presence",
        "user_religion_politics",
        "friends_religion_politics",
        "user_status",
        "friends_status",
        "user_subscriptions",
        "friends_subscriptions",
        "user_videos",
        "friends_videos",
        "user_website",
        "friends_website",
        "user_work_history",
        "friends_work_history",
        "read_friendlists",
        "read_mailbox",
        "read_requests",
        "read_stream",
        "read_insights",
        "xmpp_login",
        email
    );
}

怎么可能?当被要求许可时,用户清楚地按下了Okay。然而,被授予的价值是错误的。

现在完全没有调用完成块。

注意:它曾经有效!

实际上它刚刚发生在今天。在它完成之前。

这可能是个问题。但是在self.ACAStore requestAccessToAccountsWithType的函数中我们指定了我们的APPID?

1 个答案:

答案 0 :(得分:1)

我发现了问题所在。我只是改变我的包ID。所以我需要更新我的Facebook应用程序以使用新的包ID。

Facebook需要知道哪些应用提供了这些内容。