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

I want an identifier, not a username. But given the username ... what should I do?

+6
source share
2 answers

https://graph.facebook.com/username

eg.

https://graph.facebook.com/boxoft

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

+13
source

You may not be able to get an exact match, but you will get some results. Via Gra ph Api docs

https://graph.facebook.com/search?q=Owalla&type=user 
+2
source

Source: https://habr.com/ru/post/889914/


All Articles