简体   繁体   English

Facebook权限的功能offline_access?

[英]Capabilities of Facebook permission offline_access?

Reading the Facebook documentation, I know that with the 'offline_access' permission it 阅读Facebook文档,我知道拥有“ offline_access”权限

"Enables your app to perform authorized requests on behalf of the user at any time". “使您的应用可以随时代表用户执行授权的请求”。

So, what types of requests can be made using this permission? 那么,使用此权限可以进行哪些类型的请求?

In my application, users can create custom images and share them with friends. 在我的应用程序中,用户可以创建自定义图像并与朋友分享。 But, I want to put their submissions into a moderation system. 但是,我想将他们的意见书放入审核系统中。 I'd like to have the user select friends to share, then after the moderator approves, post on the selected friends wall. 我想让用户选择要共享的朋友,然后在主持人批准后,在所选的朋友墙上发布。 Will 'offline_access' make this possible? 'offline_access'可以实现吗?

  1. offline_access permission itself will NOT allow your app to post on behalf of the user offline_access许可本身不会让您的应用程序发布代表用户的
  2. publish_stream permission does! publish_stream权限可以!
  3. NO need for the offline_access permission if you want to publish on the user's own wall even if he is not online (I guess Facebook check if the user_id specified has granted your app the publish_stream permission and the call is issued from an allowed domain)! 无需offline_access ,如果你想在用户自己的墙公布,即使他不在线(我 Facebook的检查,如果允许user_id指定授予您的应用程序的publish_stream权限和呼叫从允许的域发出的)!
  4. Now if you want to publish on the user's friend wall friend_id/feed on a later stage (the user is not online or currently logged-in to your app aka no valid access_token ) then I think it's needed to ask for the offline_access permission to append the user's stored access_token that was retrieved earlier by your app authentication-flow. 现在,如果您想稍后在用户的好友墙上发布friend_id/feed (用户不在线或当前未登录到您的应用,也没有有效的 access_token ),那么我认为 需要请求offline_access权限来追加用户存储的 access_token ,之前由您的应用程序身份验证流程检索到。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM