How can I get Facebook Profile image from email?

前端 未结 5 1013
囚心锁ツ
囚心锁ツ 2020-12-24 08:57

There\'s an outlook plugin called Xobni that has a really cool feature, if a contact has an email address, it will fetch that contact\'s profile picture and display it. Thei

5条回答
  •  难免孤独
    2020-12-24 09:53

    It is no longer possible to search user info with email address via Facebook Graph API. While it still works if you have the Facebook user ID, but if you can't get the Facebook ID with the search API, you can no longer do this.

    https://developers.facebook.com/x/bugs/453298034751100/

    The API will return the following response:

    {
       "error": {
           "message": "(#200) Must have a valid access_token to access this endpoint",
           "type": "OAuthException",
           "code": 200
       }
    }
    

提交回复
热议问题