Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Given a Facebook username, how do I get the ID of the profile?

I want the ID, not the username. But given the username...what do I have to do?

like image 478
TIMEX Avatar asked Jun 07 '11 01:06

TIMEX


People also ask

Can I find Facebook account with username?

You can search for your account by name, email address, or phone number.

How do I find the profile ID?

Find Facebook Profile IDGo to any personal profile on Facebook, right-click the profile picture and choose Copy Link Address as before. The profile image URL will have this format. The value of the referrer_profile_id in the link is the numerical id of the Facebook user.


2 Answers

https://graph.facebook.com/username

e.g.

https://graph.facebook.com/boxoft

{ "id": "1264933131", "name": "Box He", "first_name": "Box", "last_name": "He", "link": "http://www.facebook.com/boxoft", "username": "boxoft", "gender": "male", "locale": "en_US" }

like image 117
Box Avatar answered Sep 23 '22 21:09

Box


You wont be able to get an exact match but will get some results. Via Graph Api docs

https://graph.facebook.com/search?q=Owalla&type=user
like image 42
JiminyCricket Avatar answered Sep 21 '22 21:09

JiminyCricket