I tried to get user detail using https://graph.facebook.com/username . But it throws an error
"error": {
"message": "(#803) Cannot query users by their username (ramesh.randika.56)",
"type": "OAuthException",
"code": 803
}
does anybody have a solution for this problem.
graph.facebook.com/{Username} is not avaiable now but lookup-id.com still can find your facebook ID, facebook group ID and facebook page ID
The username
field was removed with the introduction of the Graph API v2.0.
See
- https://developers.facebook.com/docs/apps/changelog#v2_0
/me/username
is no longer available.
"View page source" Option in every web browser will help you.
Follow this-
- Open the timeline of that person/FB account.
- Right-click anywhere on the web-page->View page Source-> wait 1 or 2 seconds to load the new page.
- Press Ctrl+f (used to find any string,word in the page) then type " profile_id= " (without quotes).
- Copy the long number after " = ", .
Conclusion : Using the "username" doesn't work anymore (Updated till Oct 2018),profile_id is the thing u needed instead.