在 Facebook 上离线发布
用户 A 当前登录到我的 Facebook 应用程序并执行了我想要通知用户 B(当前处于离线状态)的操作。
我尝试使用图形 API,但是:
- A 不是 B 的朋友,所以我无法使用 A 的会话发帖。
我可以使用 B 的会话发帖 - 但这会让 B 感到困惑,因为 B 会看到自己发布的有关 A 活动的帖子。
我还尝试了已弃用的 REST API,但是当指定不是会话用户的 UID 时,我收到一条错误消息。
有没有办法可以通知用户 B A 执行的操作?
非常感谢!
User A is currently logged in to my Facebook App and performs an action that I would like to notify user B (which is currently offline).
I tried using the graph API but:
- A is not a friend of B so I cant post using A's session.
I can post using B's session - but this would be confusing for B that will see a post from himself about A's activity.
I tried also the deprecated rest API but when specifing a uid which isnt the session user i get an error message.
Is there a way I can notify user B on the action performed by A?
Many thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在我看来,如果您有 offline_access 权限,您可以这样做(在墙上发布帖子) 。但这一许可可能会吓到一些人。
尝试记住访问令牌,并在用户已注销时使用它进行发布。
In my opinion you could do that (publish post on wall), if you have a offline_access permission. But this permission could scare some people.
Try remember the access token, and use it to publish while user is already logged out.