为页面创建喜欢的门 [英] Create Like-Gate for page
问题描述
我已经创建了一个Facebook页面,我想为其添加一个所谓的Like-Gate.问题在于该页面带有时间轴,到目前为止,我发现的每个教程都是针对旧的Facebook页面的.有没有办法用新页面创建类似的门?
I've created a Facebook page and I want to add a so called Like-Gate for it. The problem is that the page is with timeline and every tutorial I've found so far is for the old Facebook pages. Is there a way to create a like gate with the new pages?
推荐答案
首先,您必须创建一个通用的facebook应用程序: https://developers.facebook.com/apps
First you have to create a general facebook application: https://developers.facebook.com/apps
之后,您可以将应用程序(带有风扇门逻辑)作为Page Tab
添加到您的站点.
这是页面标签的官方Facebook教程:
https://developers.facebook.com/docs/appsonfacebook/pagetabs/
After that, you can add the application (with fan gate logic) as Page Tab
to your site.
Here the official facebook tutorial for page tabs:
https://developers.facebook.com/docs/appsonfacebook/pagetabs/
当用户选择页面选项卡"时,您将收到带有一个附加参数"page"的signed_request参数.此参数包含一个JSON对象,其ID为ID(当前页面的页面ID),admin(如果用户是该页面的管理员)和like(如果用户喜欢该页面).与画布页面"一样,在用户授权您的应用程序之前,您将不会在signed_request中收到您的应用程序可访问的所有用户信息.
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.
这篇关于为页面创建喜欢的门的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!