用户是否获得授权,在 Facebook 选项卡上

发布于 2024-09-03 01:31:00 字数 169 浏览 2 评论 0原文

出现一个有趣的错误。我一直在开发和应用,并在其页面上查看它。现在我将该应用程序安装在公司页面上的选项卡中,它说我无法使用:

<fb:if-is-app-user>

在选项卡视图中?如果查看页面的用户是应用程序用户,如何显示或隐藏页面的部分内容?

Getting an interesting error. I've been developing and application, and viewing it on it's page. Now I'm install that app in as tab on a company page and it's saying I can't use:

<fb:if-is-app-user>

in the tab view? How can I show or hide part of the page if the user viewing it is an app user?

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

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

发布评论

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

评论(1

一腔孤↑勇 2024-09-10 01:31:00

FBML 粉丝页面选项卡已被弃用并替换为 Facebook iframe 页面。要确定用户是否是粉丝,您需要对 POST 到您网页的signed_request 参数进行解码。编码的 json 负载中将有一个“liked”变量。这个 给出了新流程如何工作的示例,

FBML fan page tabs have been deprecated and replaced with Facebook iframe pages. To determine if the user is fan, you will need to decode the signed_request parameter that gets POST'ed to your webpage. There will be a "liked" variable in the encoded json payload. This page gives an example of how the new process works,

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