在 Facebook 上离线发布

发布于 2024-11-28 19:27:38 字数 316 浏览 2 评论 0原文

用户 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

微凉 2024-12-05 19:27:38

在我看来,如果您有 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文