问题描述
说一个用户给我的应用程序所需的FB权限,然后在以后的日期/时间删除它。当用户重新打开应用程序时,我可以重新请求这些权限吗?我可以阅读权限来查看应用程序是否仍然拥有这些权限,但是如果缺少该应用程序,是否有重新请求的方法?是的,您可以重新请求。只需在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权限的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!