Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Forget what the other poster said. Normal canvas apps do not accept the app_data parameter, only tab apps do. But you can use custom URLs beyond just the canvas URL. Let me show you how this works.</p> <p><strong>My App:</strong></p> <p>I have an app called PulseTrack. The main App URL is:</p> <p><a href="http://apps.facebook.com/pulsetrack/" rel="nofollow">http://apps.facebook.com/pulsetrack/</a></p> <p>Which points to this canvas URL:</p> <p><a href="http://mydomain.com/pulsetrack/" rel="nofollow">http://mydomain.com/pulsetrack/</a></p> <p>But I can also use this url:</p> <p><a href="http://apps.facebook.com/pulsetrack/watch/EP011583610051" rel="nofollow">http://apps.facebook.com/pulsetrack/watch/EP011583610051</a></p> <p>Which points to:</p> <p><a href="http://mydomain.com/pulsetrack/watch/EP011583610051" rel="nofollow">http://mydomain.com/pulsetrack/watch/EP011583610051</a></p> <p><strong>Your app</strong></p> <p>Using straight up PHP if you can setup your canvas URL like this:</p> <p><a href="http://yourdomain.com/index.php" rel="nofollow">http://yourdomain.com/index.php</a>?</p> <p>Then you can pass directory parameters to the end of your URL like so:</p> <p><a href="http://apps.facebook.com/your-app/your/awesome/params" rel="nofollow">http://apps.facebook.com/your-app/your/awesome/params</a></p> <p>Which will come to you like this:</p> <p><a href="http://yourdomain.com/index.php?/your/awesome/params" rel="nofollow">http://yourdomain.com/index.php?/your/awesome/params</a></p> <p>Something like this should be able to parse those "parameters" from the query string</p> <pre><code>$query = $_SERVER['QUERY_STRING']; $params = explode("/", $query); </code></pre> <p>Best of luck, this took me a long to figure out.</p>
    singulars
    1. This table or related slice is empty.
    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. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    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