0
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
);
}
這怎麼可能?當被要求許可時,用戶清楚地按下OK。然而,授予的價值是錯誤的。即使用戶按下,權限也會被拒絕
現在完成塊根本不會被調用。
注意:它曾經工作!
其實它今天才發生。在這一切工作之前。
這可能是問題。但是在self.ACAStore requestAccessToAccountsWithType函數中,我們指定了我們的APPID?
您的應用在Facebook開發者網站上仍處於沙箱模式嗎?如果是的話,只有經批准的賬戶(開發人員和測試人員)才能成功進行身份驗 –
該應用程序很好。事實上,它的工作模擬器 –
所以,你說這個代碼在模擬器中工作,但不是在真實的設備上,使用完全相同的Facebook帳戶? –