Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>If you are doing an FQL query based on the uid of your friend, you need to be authorized. Once authorized, you can add the access token granted by the user (in this case, your friend) to your query and have permission to get the results you're querying for.</p> <p>This is because you're trying to fetch data, which in this case being their news feed comprised of posts created by their friends and pages they follow, that belongs to the user, which essentially belongs to them. You need to authorized to be able to access their data or act on their behalf to post photos and such.</p> <p>However, if you're trying to get their own stream of posts that they themselves generate, you can totally get those, assuming that they are public and accessible by their set permissions. You can use a Graph API call:</p> <pre><code>https://graph.facebook.com/&lt;userId&gt;/feed?access_token=&lt;your access token&gt; </code></pre> <p>I'll also throw this in: You can read your own news feed as well with a Graph API call:</p> <pre><code>https://graph.facebook.com/me/home?access_token=&lt;your access token&gt; </code></pre> <p>You just need to make sure you have the 'read_stream' permission. If you try to get the news feed of another user by replacing 'me' with the user id, you'll get an error from Facebook:</p> <pre><code>{ "error": { "message": "You can only access the \"home\" connection for the current user.", "type": "GraphMethodException", "code": 100 } } </code></pre> <p>This further confirms that you can't access another user's news feed unless you have their permission, ie. being granted an access token that belongs to them.</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.
 

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