Note that there are some explanatory texts on larger screens.

plurals
  1. POFQL "Requires User Session" error
    primarykey
    data
    text
    <p>My company's recently refreshed our FaceBook application so it uses the Canvas Iframe with the PHP 3.1.1 SDK. Everything works great, except for this one FQL query that keeps sending an error: #102 - "Requires User Session".</p> <p>What does this even mean? It doesn't happen with all users, and it's not exclusive to any particular browser. There have been other people asking about this, but I can't find any solution that's less than a year old that doesn't shove it off with "just have them log in again". </p> <p>Here is a copy of the FB Error array and the FB Object (with a few things starred out for privacy)</p> <pre><code>Array ( [error_code] =&gt; 102 [error_msg] =&gt; Requires user session [request_args] =&gt; Array ( [0] =&gt; Array ( [key] =&gt; method [value] =&gt; fql.query ) [1] =&gt; Array ( [key] =&gt; query [value] =&gt; SELECT page_id FROM page_admin WHERE uid=me() AND page_id=#### LIMIT 1 ) [2] =&gt; Array ( [key] =&gt; callback [value] =&gt; ) [3] =&gt; Array ( [key] =&gt; api_key [value] =&gt; ### ) [4] =&gt; Array ( [key] =&gt; format [value] =&gt; json-strings ) [5] =&gt; Array ( [key] =&gt; access_token [value] =&gt; ### ) ) ) Facebook Object ( [appId:protected] =&gt; ### [apiSecret:protected] =&gt; ### [user:protected] =&gt; [signedRequest:protected] =&gt; Array ( [algorithm] =&gt; HMAC-SHA256 [issued_at] =&gt; 1315334757 [page] =&gt; Array ( [id] =&gt; ### [liked] =&gt; [admin] =&gt; ) [user] =&gt; Array ( [country] =&gt; us [locale] =&gt; en_US [age] =&gt; Array ( [min] =&gt; 21 ) ) ) [state:protected] =&gt; [accessToken:protected] =&gt; ### [fileUploadSupport:protected] =&gt; ) </code></pre> <p>It's getting really frustrating to have this error cropping up when our Dev team can't find any official documentation or solution for it.</p> <p>I did find this post from last year ( <a href="https://stackoverflow.com/questions/4174938/requires-user-session-error-while-using-fql-in-facebook">Requires user session error while using FQL in facebook</a> ) but the solution it provides is no longer relevant to SDK 3.1.1.</p> <p>Any help would be appreciated.</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. 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