且构网

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

如何通过用户的个人资料网址获取用户的ID?

更新时间:2023-12-03 16:31:40

您可以通过解析url,然后转到 https://graph.facebook.com/Google 并解析json响应.您还可以解析网址以获取个人资料照片: https://graph.facebook.com/Google/picture

You can get the user id by parsing the url and then going to https://graph.facebook.com/Google and parsing the json response. You can also parse the url to get the profile photo: https://graph.facebook.com/Google/picture