Truemag

  • Categories
    • Tips And Tricks
    • Internet
    • PHP
    • Javascript
    • CSharp
    • SQL Server
    • Linux
  • Lastest Videos
  • Our Demos
  • About
  • Contact
  • Home
  • Write With Us
  • Job Request
Home Facebook Graph API Get or Find Facebook Profile Id Number

Get or Find Facebook Profile Id Number

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"
}

{ "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:

facebook-user-profile-graph-api

facebook-user-profile-graph-api

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"
}

{ "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.

Mar 14, 2011Hoan Huynh
Call Or Open a web page url by using Windows Task Scheduler or CronJobMake Short URL For Facebook Profile, Fan Page Or Application Page
You Might Also Like:
  • Get Or Find Facebook Fan Page Id Number
  • PHP Get Likes Number Of Facebook Page
  • Load And Save Facebook Profile Picture Of User
  • Make Short URL For Facebook Profile, Fan Page Or Application Page
  • Facebook Load User Profile Via Graph API And FQL Query
  • PHP Change Facebook Profile Picture With Graph API
  • Facebook Removed View App Profile Page link For New Apps
  • Get Facebook Total Comments, Total Likes, Total Shares Of A Given URL
  • Javascript generate a random number using Math.random
  • Show Latest People Of Facebook Fan Page
Hoan Huynh

Hoan Huynh is the founder and head of 4rapiddev.com. Reach him at [email protected]

11 years ago Facebook Graph APIFacebook, Facebook Profile URL, facebook username2,359
0
GooglePlus
0
Facebook
0
Twitter
0
Digg
0
Delicious
0
Stumbleupon
0
Linkedin
0
Pinterest
Most Viewed
PHP Download Image Or File From URL
24,460 views
Notepad Plus Plus Compare Plugin
How To Install Compare Text Plugin In Notepad Plus Plus
21,839 views
Microsoft SQL Server 2008 Attach Remove Log
Delete, Shrink, Eliminate Transaction Log .LDF File
17,656 views
JQuery Allow only numeric characters or only alphabet characters in textbox
14,998 views
C# Read Json From URL And Parse/Deserialize Json
11,723 views
4 Rapid Development is a central page that is targeted at newbie and professional programmers, database administrators, system admin, web masters and bloggers.
Recent Posts
  • Things to Learn about Installingderm Loan Type S
  • Online Photo Editor – Free Photoediting Software
  • A Guide to Finding the Best Paper Sellers
  • Photoediting in Home Isn’t Hard to Do!

  • Free Photo Editor Online
Categories
  • CSharp (45)
  • Facebook Graph API (19)
  • Google API (7)
  • Internet (87)
  • iPhone XCode (8)
  • Javascript (35)
  • Linux (27)
  • MySQL (16)
  • PHP (84)
  • Problem Issue Error (29)
  • Resources (32)
  • SQL Server (25)
  • Timeline (5)
  • Tips And Tricks (141)
  • Uncategorized (647)
Recommended
  • Custom Software Development Company
  • Online Useful Tools
  • Premium Themes
  • VPS
2014 © 4 Rapid Development