使用 php 添加 Facebook 页面选项卡
我创建了一个 Facebook 应用程序和一个 Facebook 页面。 使用js sdk我收集了页面的访问令牌 现在我想在页面中使用 php 代码添加一个页面选项卡。
不知道如何做到这一点
有人对此有想法吗
I have created a facebook application and a facebook page.
Using js sdk i have collected the access token for the page
Now I want to add a page tab using php code in the page.
Not getting any idea how to do this
Does any one have an idea about this
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您可以使用 PHP-SDK 来执行此操作,如下所示(请参阅
文档>选项卡
连接页面
对象):You can do this with PHP-SDK like this (see details in documentation for
tabs
connectionpage
object):简单步骤 :)
1.验证您是否在应用设置中完成了页面选项卡设置链接
2.确保您的页面选项卡应用程序应为 520px
3.现在您只需将浏览器转发到以下地址,以便用户可以选择他/她想要添加选项卡的页面
https://www.facebook.com/dialog/pagetab?app_id=YOUR_APP_ID&next=YOUR_URL
您还可以详细阅读以上几点这是 Facebook 文档的链接
simple steps :)
1.verify that you complete page tab settings in your app settings link
2.make sure your page tab app should be 520px
3.now you just need to forward browser to this below address so user can select with page he/she want to add tab
https://www.facebook.com/dialog/pagetab?app_id=YOUR_APP_ID&next=YOUR_URL
you can also read the above points in detail here is link of fb doc
您可以通过将用户重定向到以下位置来将应用程序添加到页面:
参考:http://developers.facebook .com/docs/appsonfacebook/pagetabs/
You can add an app to a page by redirecting user to:
Reference: http://developers.facebook.com/docs/appsonfacebook/pagetabs/