且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何通过Facebook API 2.1中的third_party_id获取用户ID(uid)

更新时间:2023-01-09 17:03:34

通过向此Graph API端点发送GET请求,您仍然可以通过facebook第三方ID获取facebook uid:

You could still get facebook uid by facebook third party id by sending GET request to this Graph API endpoint:

https://graph.facebook.com/[THIRD_PARTY_ID]?access_token=[APP_ACCESS_TOKEN]

https://graph.facebook.com/[THIRD_PARTY_ID]?access_token=[APP_ACCESS_TOKEN]

响应将包含两个字段:nameid,而id是您想要的.

The response will have two fields: name and id, and the id is what you want.