In Graph API 2.0
When I using new graph api to access my friends information, I got the message below.
Here, xxx is an user id.
{
\"error\"
It's because you are using the app access token instead of user access token
Try the user token from this page:
If that works you need to think about getting the user access token from your app. You can give the user a prompt and receive a code as a parameter on the redirect_uri parameter
https://www.facebook.com/dialog/oauth?client_id={app-id}&redirect_uri={redirect-uri}
After you receive that code you redeem it for a user access token with a request like this:
GET https://graph.facebook.com/oauth/access_token?client_id={app-id}&redirect_uri={redirect-uri}&client_secret={app-secret}&code={code-parameter}