如何以用户而非主页身份在 Facebook 主页上发表评论

发布于 2024-12-03 02:07:52 字数 375 浏览 7 评论 0原文

我想以用户身份在 Facebook 页面上发表评论。 用户是 Facebook 页面的管理员。 我尝试让我的应用程序使用用户的访问令牌请求以下 URL。

https://graph.facebook.com/[POST_ID]/comments

但该评论是通过主页帐户发布的。

我能够以用户身份在 Facebook 页面上发帖。 我的应用程序使用用户的访问令牌请求以下 URL。

https://graph.facebook.com/[PAGE_ID]/feed

成功了。 使用页面令牌,该帖子已成功以页面帐户发布。

但评论和点赞不能以用户身份发布。 这是图形API的错误吗?请帮我。

I want to post a comment on Facebook Page as User.
The user is admin of the facebook page.
I tried that my app requests the following URL with the user's access token.

https://graph.facebook.com/[POST_ID]/comments

But the comment was posted as Page account.

I was able to post on Facebook Page as User.
My app requests the following URL with the user's access token.

https://graph.facebook.com/[PAGE_ID]/feed

It's successful.
With the pages's token, the post was successfully posted as Page account.

But comment and like can't be posted as User.
Is it a bug of graph API? Please help me.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

余生共白头 2024-12-10 02:07:52

如果您使用用户的访问令牌进行发布,它将显示为来自用户。仅当您在 GraphAPI 中使用从 me/accounts/ 获取的页面访问令牌时,它才会显示为由页面发布。

If you post with the User's Access Token it will show up as being from the user. It will only show up as being posted by the page if you use the Page's Access Token obtained from me/accounts/ in the GraphAPI.

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