TIMEX
TIMEX

Reputation: 272084

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?

Upvotes: 6

Views: 9945

Answers (2)

Box
Box

Reputation: 2502

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" }

Upvotes: 13

JiminyCricket
JiminyCricket

Reputation: 7410

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

Upvotes: 2

Related Questions