- Tips & Tricks

How to Find a Facebook User ID

I am going to show you how to extract a Facebook User ID out of a Facebook picture URL.

Today I was working on some Facebook like button integration and I needed to figure out the Facebook ID of the website owner in order to give him access to the Facebook Insights.  Facebook does not have any easy way of finding this but I was able to figure it out. This process requires that you can view a user’s pictures.

Here is how to find it:

  1. Go the the desired user’s Facebook profile and then click on one of their pictures.
  2. Look at the URL, the ID should be in the “set” query string right after the last period (I have highlighted it below using my profile picture URL).

 

www.facebook.com/photo.php?fbid=10100156274416995@set=a.758622472705.2358636.38421324&type=3&theater

 

This works as of December 2011 but is subject to change based on Facebook’s future decisions.

About Joey Iodice

I'm a software developer focusing on ASP.net, HTML5, jQuery, & Javascript.
Read All Posts By Joey Iodice

Leave a Reply

Your email address will not be published. Required fields are marked *