仅向粉丝显示 Facebook 流发布的提要操作链接

发布于 2024-08-21 09:19:08 字数 181 浏览 9 评论 0原文

我创建了一个公司页面,开发了一个应用程序来将提要发布到该页面。它工作得很好,但我必须找到一种方法来仅向该页面的粉丝显示其操作链接。我尝试了 Page.IsFan() 方法,但它不起作用,如文档中所述。

如果当前查看该提要的用户是我页面的粉丝,我迫切需要找到一种方法,如果不是粉丝,则隐藏操作链接。是否可以?

I created a company page, developed an app to publish feeds to that page. It works fine, but I have to find a way to show its action links only to that page's fans. I tried Page.IsFan() method, but it is not working, as said in docs.

I desperately need to find a way if current user viewing that feed is fan of my page and hide action links if not a fan. Is it possible?

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

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

发布评论

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

评论(1

顾冷 2024-08-28 09:19:08

这是不可能的——提要故事一旦发布就是静态内容,其中包括操作链接。 Page.isFan 适用于应用程序内的 API 调用 - 并且在应用程序上下文中运行良好 - 但您无法从摘要故事内进行 API 调用。

It's not possible - feed stories are static content once they're published, and that includes the action links. Page.isFan is meant for API calls within an application - and works perfectly well in an application context - but you can't make API calls from within a feed story.

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