Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <h1>How to create a mobile accessible Facebook Page Tab App</h1> <p>In order to create a <strong>Page Tab App</strong> which has a <strong>mobile accessible</strong> version (an external website accessed directly, not via a Facebook iFrame). You need to add and configure 3 different "Platforms" in the app developer settings. These should be configured as follows:</p> <h2>Page Tab</h2> <p>Configure this as you would normally. </p> <ul> <li><strong>Page Tab Name</strong>: <em>the name you want to appear on the page tab</em></li> <li><strong>Page Tab Url</strong>: <em>the url where you are hosting the page tab app</em> (e.g. <a href="http://myapp.com/page-tab">http://myapp.com/page-tab</a>)</li> <li><strong>Secure Page Tab Url</strong>: <em>the same thing but with https in front</em> (e.g. <a href="https://myapp.com/page-tab">https://myapp.com/page-tab</a>)</li> </ul> <h2>Website</h2> <p>This is where you configure the url for your mobile site</p> <ul> <li><strong>Mobile Site URL</strong>: <em>This is the url you want mobile users to be redirected to (e.g. <a href="http://myapp.com/mobile-version">http://myapp.com/mobile-version</a>)</em></li> <li><strong>Site URL</strong>: <em>This is used for Facebook Connect, if you are not using Facebook connect, just put your mobile url in here too.</em></li> </ul> <h2>App on Facebook</h2> <p>This is going to be the gateway to your app. <strong>Mobile users</strong> arriving on this page will be redirected to the <strong>mobile website</strong>. You can use javascript to redirect <strong>desktop users</strong> to your <strong>Facebook Page Tab App</strong>.</p> <ul> <li><strong>Canvas App Page</strong>: <em>this will be <a href="http://apps.facebook.com/my-app-namespace">http://apps.facebook.com/my-app-namespace</a>, this is the link you will post on your facebook wall or in your ads, or anywhere else you want to link to your page tab</em></li> <li><strong>Canvas Url</strong>: <em>this is a link to a page on your app that will be embedded as an iframe on the canvas app page. You will use this page to redirect to your page tab using JavaScript. e.g. <a href="http://myapp.com/canvas-redirect">http://myapp.com/canvas-redirect</a></em></li> <li><strong>Secure Canvas Url</strong>: <em>This is the same as above but with https in front (e.g. "<a href="https://myapp.com/canvas-redirect">https://myapp.com/canvas-redirect</a>")</em></li> </ul> <h2>Your Canvas Redirect Script</h2> <p>You want people arriving at your canvas app on a desktop browser to be redirected to your page tab app. Because it is loaded inside an i-frame, the only way to do this is using JavaScript.</p> <p>This will be the content of your <strong>Canvas Url</strong> (<a href="http://myapp.com/canvas-redirect">http://myapp.com/canvas-redirect</a> above): </p> <pre><code>&lt;script&gt;top.location="http://facebook.com/page_tab_url/app_1234"&lt;/script&gt; </code></pre> <p><strong>Note the "top.location"</strong> - this will redirect the parent window, not just the iframe to the page tab. When a user arrives on the canvas page in a desktop browser, they will be redirected via JavaScript to your <strong>Page Tab App</strong>. <strong>Mobile users</strong> will be redirected by Facebook to the <strong>Mobile Site Url</strong> you specified above.</p> <h2>Testing in Sandbox Mode</h2> <p>If your app is in Sandbox Mode, only admins, developers or testers of the app will be able to see it. In particular users not logged into Facebook, or who are logged into Facebook but are not admins or testers of the app, will not be able to access the app canvas page - they will just see a 404 error. In order to test your mobile redirect when the app is in sandbox mode, you need to ensure that <strong>you are an an admin, developer or tester of the app AND you are logged into Facebook's mobile site on your phone's web browser</strong> - i.e. Safari on iOS and Chrome on Android. It is <strong>not</strong> sufficient to be signed into the Facebook Mobile App on your phone, you must also be logged in using the browser. </p> <h2>A note about User Roles</h2> <p>You can configure the App User Roles by clicking on the "roles" tab in the app settings. You can add a Facebook user, or a Facebook Group as any of the roles. (If you add a Group, all the users in that group will have the role specified in the app). In order for a user to have a specific role on an app, they must:</p> <ul> <li>Verify their facebook account: <a href="http://www.facebook.com/help/verify">http://www.facebook.com/help/verify</a></li> <li>Install the Facebook Developer app <a href="https://developers.facebook.com/">https://developers.facebook.com/</a></li> </ul> <p><em>(Edited to reflect updated Dev Settings UI and readibility)</em></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload