Facebook graph API returns only name and id for some websites

前端 未结 1 1183
灰色年华
灰色年华 2020-12-14 06:20

I\'ve developed a WordPress plugin for social login using Facebook. I\'m using the Facebook graph API /me to retrieve the user details. My problem is that for

相关标签:
1条回答
  • 2020-12-14 06:55

    As CBroe already pointed out in the above comment, the Facebook API - newer than version 2.4 - changed the response and the way the requests are being sent.

    You have to specify each field you want to be returned from the Graph API within your request.

    For example, if you want the fields email and name returned, you must add them inside the request like this:

    /me?fields=email,name
    
    0 讨论(0)
提交回复
热议问题