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.


Published

in

Comments

10 responses to “How To Find A Facebook User Or Page ID”