How to Find the ID of a Facebook User

The Facebook Admin IDs setting in XenForo requires that you enter the Facebook user ID(s) of the designated administrators for that page within the Open Graph.

Finding the Facebook user ID of a person (even yourself) can be a little challenging, but once you know where to look it's very simple.

Facebook gives users the ability to select a unique username or 'vanity URL' for their member profile. Effectively, this will convert the original URL to a member profile from to

The process to find a user ID differs depending on whether or not the user has selected a username.

Users Without a Username

These users are simple. All you need to do is find a link to their profile page, copy the URL of the link and save the long number specified by profile.php?id=557055802. You can then take this number and paste it into the Facebook Admin IDs setting in XenForo.

Users With a Username

Facebook hides the ID of these users, and there are all sorts of crazy ways documented on the Internet describing ways to find their user ID, but there is only one proper method.

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 are no exception.

The URL to a named user is, and will return a JSON object containing information about that user:

   "id": "557055802",
   "name": "Kier Darby",
   "first_name": "Kier",
   "last_name": "Darby",
   "link": "",
   "username": "kierdarby",
   "gender": "male",
   "locale": "en_GB"

The user ID is specified in the id property. Simply copy this value (without the quotation marks) and paste it into the Facebook Admin IDs setting in XenForo.

Facebook User ID Finder

To make this process even easier, here's a form you can submit to get that information without even having to paste the URL into your browser: