by sync · 15y ago · 0 comments
You can easily identify anyone by viewing the source of their FB pic. For example:
http://profile.ak.fbcdn.net/hprofile-ak-snc4/hs444.snc4/48985_665523839_4409_q.jpg
profile ID is 665523839, which you can plug in to see all their details: http://www.facebook.com/profile.php?id=665523839The python to do it would look something like this:
def cache_fb_photo(fb_uid,cache_name):
import urllib
import time
request = urllib.urlopen("https://graph.facebook.com/%s/picture" % (fb_uid))
photo = request.read()
photo_location = "/path/to/photo/cache/cache_name"
cached_photo = open(photo_location, "w")
cached_photo.write(photo)
cached_photo.close()
This may or may not violate facebook's ToS. Obviously it would take more than this to actually put it into production, but this would kindof work.The fact that it is a 'pain' to make the effort to protect someones identity means you're probably in the wrong business.