使用 PHP 以外的任何其他方式在 facebook iframe 选项卡中进行粉丝控制
我需要在 Facebook 上创建一个选项卡,向不喜欢该选项卡所显示页面的访问者显示一种内容,并向喜欢该选项卡的访问者显示另一种内容。我知道可以使用 PHP 来完成,我的问题是:可以使用 javascript 来完成吗? 它需要像以前使用 fbml 一样工作。
I need to make a tab on Facebook that show one content to vistors who don't like the page the tab is shown on, and another conent to those who does. I know that it can be done using PHP, my question is: Can it be done using javascript.
It need to work just like it used to do using fbml.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用 php 是“扇动”您的内容的最简单方法,不需要任何权限。我从未尝试过通过 Javascript SDK 获取签名请求,但这可能会帮助您:
http: //developers.facebook.com/docs/reference/javascript/FB.getAuthResponse/
Using php is the easiest way to "fan-gate" your content which doesn't need any permission. I never tried getting signed request thru Javascript SDK but this one might help you:
http://developers.facebook.com/docs/reference/javascript/FB.getAuthResponse/