Reputation: 29
I am using facebook graph api as below;
https://graph.facebook.com/v2.0/search?q=search+string+here&type=user&access_token=accessTOKENhere
and it results as;
"data": [
{
"name": "search+string+here",
"id": "10152202833927632"
}
],
When I was first testing this I was using the id like;
http://www.facebook.com/10152202833927632
and I was able to see the page of the user. But now I realize that this link doesn't work. When I check from other sources, the real id of the user is not same with this one.
Does anyone know why graph api returns me a different kind of (not working) id?
Thanks in advance!
Upvotes: 0
Views: 1168
Reputation: 764
App-scoped IDs were introduced in Graph API v2.0. Read more about how they work and how you handle them here.
Upvotes: 0
Reputation: 4908
The ID is an app scoped user ID. Do a request to graph.facebook.com/10152202833927632 and in the request there is a link property that you can use to link to that user
Upvotes: 1