使用iOS FB SDK重新请求FB权限 [英] Re-requesting FB permissions using the iOS FB SDK
问题描述
是的,您可以重新请求。只需在FBSession上使用标准的requestNewReadPermissions或requestNewPublishPermissions方法即可。但在重新请求权限时要小心,并且仅重新请求您的应用程序绝对需要操作的权限(因为用户可能因为某种原因而删除了这些权限)。您应该向用户明确您的应用程序需要这些权限,然后再次请求他们。
Say a user gives my app the required FB permissions then removes it at a later date/time. Can I re-request these permissions when the user reopens the app? I can read the permissions to see if the app still has them but is there a way to re-request them if they're missing?
Yes, you can re-request them. Just use the standard requestNewReadPermissions or requestNewPublishPermissions methods on FBSession. But be careful when re-requesting permissions, and only re-request the permissions that your app absolutely needs to operate (because the user probably removed those permissions for a reason). You should make it clear to the user why your app needs these permissions before asking for them again.
这篇关于使用iOS FB SDK重新请求FB权限的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!