As the most popular social networking site, Facebook like all other communities is subject to its share of hacks. Methods on how to access peoples private photo albums have previously surfaced and I recently found out that it’s possible to find the facebook profile associated with a certain photo.

This is made possible because the photo url contains the profile id. Just paste this javascript function into the adress bar and run it and you’ll be redirected to the profile.

//Copy and paste this into the adress bar
javascript:(function(){var sp = location.href.split('/'); var f = sp[sp.length-1].split('_'); window.open("http://www.facebook.com/profile.php?id="+f[2],Math.random()); })();

If you only have the filename (e.g. 228925_10150724131690230_906175229_20014075_7377362_n.jpg) then you would have to extract the profile id manually.

It is the middle number in the filename (906175229). Extract it and insert it behind the id parameter in: http://www.facebook.com/profile.php?id=