如何在用户离线时发布到用户的墙上,通过我的应用程序更新他的令牌(如果过期)。 C# 脸书 SDK
我知道用户成功登录后如何使用令牌,
FacebookLoginDialog(AppId, ExtendedPermissions);
但是当我的应用程序想要在该用户离线时向他发布信息时会发生什么?我如何更新令牌?有没有办法识别用户是否允许应用程序仅通过他的 ID 发帖?
I know how to use the token after the user successfuly logs in with
FacebookLoginDialog(AppId, ExtendedPermissions);
but what happens when my app wants to post at this user while he is offline? And how can i renew the token? Is there a way to regognize that a user has allowed the app to post by only his id?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
请求 Offline_access 扩展权限,然后您可以在用户离线且您处于离线状态时发帖想要不必担心刷新令牌。
Request offline_access extended permission and then you can post when the user is offline and you want have to worry about refreshing the token.
来自 Facebook 的文档:
看起来确实没有必要在离线时拥有在用户墙上发布的离线访问权限 - 必须有一种方法来“刷新”访问令牌,或使用应用程序的令牌。
From Facebook's documentation:
It seems like there is really no need to have that offline_access permission to post on user's wall while there are offline - there has to be a way to 'refresh' the access token, or use the application's token.