facebook - 为页面创建 Like-Gate

标签 facebook facebook-like

<分区>

我创建了一个 Facebook 页面,我想为其添加一个所谓的 Like-Gate。问题是该页面带有时间轴,到目前为止我找到的每个教程都是针对旧的 Facebook 页面的。有没有办法用新页面创建点赞门?

最佳答案

首先,您必须创建一个通用的 facebook 应用程序: https://developers.facebook.com/apps

之后,您可以将应用程序(带有扇门逻辑)作为 Page Tab 添加到您的站点。 这里是页面选项卡的官方 facebook 教程: https://developers.facebook.com/docs/appsonfacebook/pagetabs/

When a user selects your Page Tab, you will receive the signed_request parameter with one additional parameter, page. This parameter contains a JSON object with an id (the page id of the current page), admin (if the user is a admin of the page), and liked (if the user has liked the page). As with a Canvas Page, you will not receive all the user information accessible to your app in the signed_request until the user authorizes your app.

关于facebook - 为页面创建 Like-Gate,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9886132/

相关文章:

javascript - 模态 Facebook

PHP 脚本检查用户是否已存在于 MySQL 数据库中

facebook - 如何获取所有喜欢 Facebook 帖子的人?

php - 在应用程序上按下类似按钮时自动刷新时间轴页面?

url - 警报说使用不带绝对URL的已弃用HREF

php - 像按钮对齐问题

Facebook 图形 API : (#100) The After Cursor specified exeeds the max limit supported by this endpoint

facebook - 验证特定应用程序的 Facebook 访问 token

swift - NSUserDefaults 与 Facebook 登录

html - 控制 Facebook Like 按钮的水平定位