If you completely forgot your Facebook Profile ID Number or you did make short link for you Facebook profile url and for some reasons, you really need the number. This post will let you know how to find your Facebook profile ID Number.
From the beginning, you can get the number from your profile url by clicking click on the “Profile” tab in the upper right hand corner:
It’s something likes:
http://www.facebook.com/profile.php?id=1258565465
So, if you forgot that number, the number which is highlighted above, you can get it from these ways:
1. Use Facebook Graph API
After logged in to your Facebook account, copy and paste the url below associate with your facebook username:
https://graph.facebook.com/your_user_name
Replace your_user_name with your current Facebook username, if you have already customize your Facebook Profile URL.
Example, my Facebook username is hoanhuynhtrong, so simply access the url below, after logged in successful – of cause, I will get my current number and maybe some extra information (name, first_name, last_name, link, gender, locale, …):
https://graph.facebook.com/hoanhuynhtrong
Output:
{ "id": "1258565465", "name": "Hoan Huynh", "first_name": "Hoan", "last_name": "Huynh", "link": "http://www.facebook.com/hoanhuynhtrong", "gender": "male", "locale": "en_US" } |
The responses are in JSON format but it’s easy for us to find current Facebook ID is: 1258565465.
Note: https://graph.facebook.com/hoanhuynhtrong and https://graph.facebook.com/1258565465 will have the same responses with JSON format.
2. Facebook API User Profile
It’s another way to do this is. Successful logged in is also required.
Access link below:
http://developers.facebook.com/docs/reference/api/user/
It will show something like picture below:
Let click on the link: “https://graph.facebook.com/me (current user)”
You will also get responses in JSON format which is very similar to the first way:
{ "id": "1258565465", "name": "Hoan Huynh", "first_name": "Hoan", "last_name": "Huynh", "link": "http://www.facebook.com/hoanhuynhtrong", "birthday": "06/13/1983", "hometown": { "id": "108458769184495", "name": "Ho Chi Minh City, Vietnam" }, "work": [ { "employer": { "id": "104946252878693", "name": "Who Digital" }, "with": [ { "id": "658451210", "name": "Abbey Phuong-Anh Huynh" } ], "start_date": "0000-00" } ], "gender": "male", "relationship_status": "In a relationship", "significant_other": { "name": "Chau Nguyen", "id": "1455307165" }, "website": "http://vuvu.mobi\r\nhttp://rapid-dev.net\r\nhttp://websitestatinfo.com", "timezone": 7, "locale": "en_US", "verified": true, "updated_time": "2011-01-17T06:18:02+0000" } |
There are several ways on the Internet may help to do this by checking the html source code behind based on photos, albums or profile page but I think 2 ways above should be easier for you with just 1 click. 🙂
And I think this tutorial can apply if you want to find Fan Pages or Application Facebook ID.