If you have set user your user name via the Account Setting, it can be very hard to find your numeric user id. In fact, it’s annoyingly hard. I don’t know why this information is not somewhere obvious, like in your Account Setting section.

Why can’t they put it there? It’s not like the user id is a secret, and it’s needed if you need to put yourself as fb:admins as admins in the Like Button Widget or other Open Graph stuff.

Anyway, there have been several ways to get the user name, usualy involving rolling over your real name in the Facebook page or posting a message. These may or may not work at this time (I know the rollover doesn’t work today). An alternative, more sure-fire way is to use the Graph API service, by entering this in your browser:


The result will be something like this:

   "id": "100001207562934",
   "name": "Your Name",
   "first_name": "Your First Name",
   "last_name": "Your Last Name",
   "username": "yourUserName",
   "gender": "male",
   "locale": "en_US"

The id is your user id.

4 Responses to “Getting Your Facebook Numeric User ID”

  1. [...] have written about a simple way to get the ID using the Graph API web service here: http://www.permadi.com/blog/2011/04/getting-your-facebook-numeric-user-id/. But you can’t use that for other users. You’ll have to get the other user to [...]

  2. Hey thank buddy, your “graph.facebook.com/username” thing worked :)

  3. Your work to discover these facebook assists are really appreciated. I’m no developer, so much of what’s needed is just not that obvious.

    So thank you for taking the time to post these.

  4. yes that code really works thanks

Leave a Reply