Get username field in Facebook Graph API 2.0

后端 未结 8 511
忘了有多久
忘了有多久 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:15

    The username field of the User object has been removed, and does not exist in Graph API v2.0. In v2.0 of the API is there is no way to get the FB username of a user.

    Source: https://developers.facebook.com/docs/apps/changelog#v2_0_graph_api

    "/me/username is no longer available."

提交回复
热议问题