仅向粉丝显示 Facebook 流发布的提要操作链接
我创建了一个公司页面,开发了一个应用程序来将提要发布到该页面。它工作得很好,但我必须找到一种方法来仅向该页面的粉丝显示其操作链接。我尝试了 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是不可能的——提要故事一旦发布就是静态内容,其中包括操作链接。 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.