Note that there are some explanatory texts on larger screens.

plurals
  1. POFacebook Connect Graph API - Why Can't I Retrieve All User's Details?
    primarykey
    data
    text
    <p>I feel like every second question i ask here is relating to Facebook Connect - that says a lot about their API. Anyway, that's politics, i digress..</p> <p>I'm trying to pull back user details from the Graph API for use in my application (which is an FBML external website - JavaScript SDK for authentication).</p> <p>I have requested the following permissions from the user: (using the regular dialog)</p> <ul> <li>publish_stream</li> <li>email</li> </ul> <p>This works, and allows me to post to the user's wall, and grab their email from the Graph API.</p> <p>But when i do a HTTP GET Request to the following URL:</p> <p><strong><a href="https://graph.facebook.com/uid?access_token=oat" rel="nofollow noreferrer">https://graph.facebook.com/uid?access_token=oat</a></strong> (where uid = the user id of the user i'm attempting to grab details for, and oat = the OAuth token i have).</p> <p>All that comes back in the JSON is the User ID (which i already have, since im putting it in the URL), and the email.</p> <p>Why can i not get things like first name, last name, locale, etc? </p> <p>Am i using the wrong URL? Is my OAuth token wrong?</p> <p>I'm getting the OAuth token from here:</p> <p><strong><a href="https://graph.facebook.com/oauth/access_token?type=client_cred&amp;client_id=myappid&amp;client_secret=myappsecret" rel="nofollow noreferrer">https://graph.facebook.com/oauth/access_token?type=client_cred&amp;client_id=myappid&amp;client_secret=myappsecret</a></strong></p> <p><strong>UPDATE:</strong></p> <p>It looks like the issue is my OAuth token.</p> <p>Because when i go to the docs: <a href="http://developers.facebook.com/docs/api" rel="nofollow noreferrer">http://developers.facebook.com/docs/api</a></p> <p>And use the sample OAuth Token for the user im trying to retrieve, it gets all the details.</p> <p>Anyone know what is wrong with my OAuth token call?</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.
 

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