Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>If you want to pass multiple querystring params though the app_data param, you can <strong>urlencode it</strong>. </p> <p>All querystring params that need to propagate through a Facebook tab should be url-encoded in the app_data var.</p> <p>In other words, the "&amp;" and the "=" need to be url-encoded (especially if passing more than one param).</p> <h2>Examples</h2> <h3>GOOD TAB URL (this passes all 3 params):</h3> <p><a href="https://www.facebook.com/pages/yourpagename/56789?sk=app_12345&amp;app_data=var1%3D123456789%26anothervar%3Drawr%26athird%3Dmeow" rel="noreferrer">https://www.facebook.com/pages/yourpagename/56789?sk=app_12345&amp;app_data=var1%3D123456789%26anothervar%3Drawr%26athird%3Dmeow</a> </p> <p>In the app_data from this signed request, I got this value: <em>var1=123456789&amp;anothervar=rawr&amp;athird=meow</em></p> <h3>BAD TAB URL (this passes only the first param through the signed_request):</h3> <p><a href="https://www.facebook.com/pages/yourpagename/12345?sk=app_56789&amp;app_data=var1=123456789&amp;anothervar=rawr&amp;athird=meow" rel="noreferrer">https://www.facebook.com/pages/yourpagename/12345?sk=app_56789&amp;app_data=var1=123456789&amp;anothervar=rawr&amp;athird=meow</a> </p> <p>In the app_data from this signed request, I ONLY got this value: <em>var1=123456789</em> (Facebook dropped the rest)</p> <p>You can even give your media team instructions like this =)</p> <blockquote> <p>Media team,</p> <p>Here is an online utility to urlencode the querysting data you want to embed in the app_data param: <a href="http://meyerweb.com/eric/tools/dencoder/" rel="noreferrer">http://meyerweb.com/eric/tools/dencoder/</a> </p> <p>Base Url: <a href="https://www.facebook.com/pages/yourpagename/12345?sk=app_56789&amp;app_data=" rel="noreferrer">https://www.facebook.com/pages/yourpagename/12345?sk=app_56789&amp;app_data=</a></p> <p>Steps:</p> <ol> <li>Go to <a href="http://meyerweb.com/eric/tools/dencoder/" rel="noreferrer">http://meyerweb.com/eric/tools/dencoder/</a> </li> <li>Type var1=123456789&amp;anothervar=rawr&amp;athird=meow in the box</li> <li>Hit the Encode button </li> <li>You’ll get var1%3D123456789%26anothervar%3Drawr%26athird%3Dmeow which becomes your app_data param. Append that to the baseUrl noted above like this: <a href="https://www.facebook.com/pages/yourpagename/12345?sk=app_56789&amp;app_data=var1%3D123456789%26anothervar%3Drawr%26athird%3Dmeow" rel="noreferrer">https://www.facebook.com/pages/yourpagename/12345?sk=app_56789&amp;app_data=var1%3D123456789%26anothervar%3Drawr%26athird%3Dmeow</a> (this is the URL with the tracking params for the [banner ad] [online media] [etc])</li> </ol> </blockquote> <p>p.s. Querystring params in non-tab pages are handled fine (<a href="https://apps.facebook.com/yourappname/Canvas.aspx?var1=123456789&amp;anothervar=rawr&amp;athird=meow" rel="noreferrer">https://apps.facebook.com/yourappname/Canvas.aspx?var1=123456789&amp;anothervar=rawr&amp;athird=meow</a> does not strip out qs params like what happens in the Tab, for example).</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. 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.
    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