How To Find A Facebook User Or Page ID

These days, you’re sometimes asked to provide your facebook user ID when filling some forms online and some of us don’t even have a clue what this is. You might even need the profile ID of a page for certain reasons and this can be a real challenge especially if the profile in question already has a username. Since most facebook profiles now have vanity URLs, you can’t get the profile ID just looking at the address bar, all you’re gonna see is the username. So how do you get such profile ID for profiles with custom address?

Users Or Pages Without A Username

For pages or users who do not already have a facebook username, you can get the profile ID by just going to the profile, checking your address bar and copying out the last set numbers in the URL. For example, the ID for this profile is shown in red:

www.facebook.com/profile.php?id=1234567890000



Facebook Users Or Pages With Custom URL or Username

For profiles with vanity URL replacing the one with profile ID, there are so many ways to find the ID and there are even some facebook applications created just for this. There is, however, one method that’s the easiest of all.

To find the user ID of a named user, you must query the Open Graph. Every object within the Open Graph has a unique URL that can be inspected and will return information about that object. Users and pages are no exception.

For my facebook profile which is http://www.facebook.com/doncaprio

All you’re going to need is my facebook username which is doncaprio

Launch this in your browser http://graph.facebook.com/doncaprio

You should see something that looks like this:

{
“id”: “1167126869“,
“name”: “Don Caprio”,
“first_name”: “Don”,
“last_name”: “Caprio”,
“link”: “http://www.facebook.com/doncaprio”,
“username”: “doncaprio”,
“gender”: “male”,
“locale”: “en_US”
}

The user ID is specified in the id property. Simply copy this value (without the quotation marks). The same goes any user profile of facebook fan page. You only need to add the username after http://graph.facebook.com/ to get the ID.

avatar
Don Caprio is a full time blogger / web designer living in Nigeria and apart from blogging, my other obsession is music. I'm a self-confessed Tupac fan, an iOS lover, an Android user, a Windows 8 power user, a writer with a 5-year old unfinished novel... and the list goes on and on. You can add me on Facebook, follow my updates on Twitter or add me to your circles on ! You can as well grab my feed and get updates through email.
avatar

@doncaprio

Tech blogger at http://doncaprio.com Web designer at http://doncaprio.org
How To Minimize Android Data Consumption http://t.co/wYoJAApeWf - 5 hours ago
avatar
avatar

Get free daily updates through email

Comments

  1. How to find the page id even it has a username?

  2. Nice post, I’m a huge Facebook addict!

  3. 2 thumbs up for the info for such user-friendly info. You made it so easy even for an FB novice like me. Thanks!

  4. You. Rock. Thanks.

Speak Your Mind

*

CommentLuv badge