Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
使用 iOS 6 facebook SDK 原生对话我希望在用户第一次拒绝后再次请求 facebook 权限。我在用:
[[FBSession activeSession] closeAndClearTokenInformation];
在 iOS 6 模拟器上它可以工作,它会再次询问,但在设备上却不行。除了在 facebook 网站上删除 facebook 应用程序之外的任何解决方法?
您可以尝试 reauthorizeWithPermissions:behavior:completionHandler:
- (void)reauthorizeWithPermissions:(NSArray*)permissions behavior:(FBSessionLoginBehavior)behavior completionHandler:(FBSessionReauthorizeResultHandler)handler __attribute__((deprecated));
https://developers.facebook.com/docs/reference/ios/3.1/class/FBSession#reauthorizeWithPermissions%3Abehavior%3AcompletionHandler%3A