Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <h3>Problem</h3> <p>The <code>access_token</code> in your pasted URL is not part of the query string, but instead contained in the URL fragment (after the #). URL fragments are not sent to the web server, and are readable only by client-side code like Javascript. Therefore the PHP SDK only sees <a href="http://karmakorn.com/karmakorn/alpha20/kk-fb-auth.php" rel="nofollow">http://karmakorn.com/karmakorn/alpha20/kk-fb-auth.php</a>, which is why <code>$_REQUEST</code> does not contain an <code>access_token</code> key.</p> <h3>Questions / Notes</h3> <ol> <li>What are you using for your redirect_uri? I think you want to be using something like <a href="http://apps.facebook.com/your_canvas_url/" rel="nofollow">http://apps.facebook.com/your_canvas_url/</a></li> <li><p>You shouldn't need to call <code>parse_signed_request</code> yourself or copy any code from the signed request page. The PHP SDK will do that for you. Just call:</p> <pre><code>$facebook = new Facebook(array( 'appId' =&gt; '…', 'secret' =&gt; '…', )); $access_token = $facebook-&gt;getAccessToken(); </code></pre></li> </ol> <h3>Possible solutions</h3> <ol> <li>Also use the <a href="http://developers.facebook.com/docs/reference/javascript/" rel="nofollow">Facebook Javascript SDK</a>. You can start by adding its <code>&lt;script&gt;</code> tag in your destination page (kk-fb-auth.php) (see <a href="http://developers.facebook.com/docs/reference/javascript/" rel="nofollow">the docs</a> for full details; don't forget to set <code>oauth: true</code>). The JS SDK should set a cookie (named fbsr_126736467765) which the PHP SDK will be able to read via <code>$_REQUEST</code> or <code>$_COOKIE</code> on subsequent page loads.</li> </ol>
    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.
 

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