Set-Up a Fan Gate

Páginas: 4 (822 palabras) Publicado: 23 de octubre de 2011
FBML is going away[->0]. Is the popular (and effective) strategy of "fan-gating" content to encourage visitors to Like you page going away with the [->1] FBML tag?
No! Facebook has been kind enoughto provide a new method for implementing "reveal tabs" on the new iframe tabs. Follow along in the tutorial below to learn how to do this.
(This tutorial assumes you are creating a PHP Facebookapplication, but you can follow the spirit of it in any language.)
1. Set up an iframe tab application
I won’t cover all of the details here, but you need to set up an iframe tab application on Facebookfirst. Assuming you have access to put PHP files up on a public server, follow these steps:
1. Go to the Facebook Developer application[->2]
2. Create a new application
3. On the "FacebookIntegration" tab of the application settings:
1. Set the Canvas Page URL slug
2. Point the Canvas URL to your PHP script’s base URL
3. Set the Tab Name to something (Welcome!)
4. Make sure the*Page Tab Type is set to iframe*
5. Set the Tab URL to the specific PHP file for this tab
4. On the "Advanced" tab of the application settings:
1. Make sure the "OAuth 2.0 for Canvas" option is set5. Save the application
6. Add the application to a Page to test it out
NOTE: There is some confusion about Canvas URL and the Tab URL. The Canvas URL is the PHP file that get’s hit when theusers views the Canvas app. This is different than the PHP script which generates the Tab, which is defined by the Tab URL. The Tab URL has to be relative to the Canvas URL. What I usually do is have theCanvas PHP file be "index.php" and point the Canvas URL to the directory it’s in. Then I make a "tab.php" file for the Tab URL in the same directory.
• Canvas URL:http://mysite.com/myfbappdirectory/
• This points to the file http://mysite.com/myfbappdirectory/index.php
• Tab URL: tab.php
• This points to the file http://mysite.com/myfbappdirectory/tab.php
2. Get the signed_request...
Leer documento completo

Regístrate para leer el documento completo.

Estos documentos también te pueden resultar útiles

  • set up
  • Set Up
  • Set up
  • Set-Up
  • Set up finger
  • Reduccion de tiempo de set up
  • Técnica De Set-Up
  • set up

Conviértase en miembro formal de Buenas Tareas

INSCRÍBETE - ES GRATIS