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:
- Go the the desired user’s Facebook profile and then click on one of their pictures.
- 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/[email protected]=a.758622472705.2358636.38421324&type=3&theater
This works as of December 2011 but is subject to change based on Facebook’s future decisions.