Facebook Graph Api 2.1 get userid from username
问题 I am looking for a solution which can provide me user id from profile url or fb username example :http://facebook.com/username get userid of this url and also when I try to read friends (I have friend related permission), I am getting blank data array ex: graph api requ: https://graph.facebook.com/v2.1/me/friends?access_token=xxxxx response: { "data": [ ], "summary": { "total_count": 455 } } Please let me know how can I get friend list and userid using username in Facebook graph api v2.1 回答1: