Get username field in Facebook Graph API 2.0

后端 未结 8 529
忘了有多久
忘了有多久 2020-11-29 02:55

The \"old\" Facebook Graph API had a \"username\" field which could be used to create a human-readable profile URL. My username for example is \"sebastian.trug\" which resul

8条回答
  •  时光说笑
    2020-11-29 03:04

    One of the ways could be to access facebook.com/{userid} using cURL and then follow the redirect.

    The page rediects to facebook.com/{username}

提交回复
热议问题