更新时间:2023-12-02 18:03:22
你可以从以下网址:
https://图.facebook.com / [id] / picture
参考:
http://developers.facebook.com/docs/reference/api/
Is there a way to get the ID of the picture that is the current profile picture for a user?
Edit: OK, seems there is no trivial way to get the ID!
However, it appears from random testing that every user has a single album with attribute type="profile"
, and the first image in this album is always the profile picture, so it is possible to get the ID of the profile picture that way. Can some more experienced with Facebook confirm that this is indeed always the case?
You can get the users public profile photo from the following url:
https://graph.facebook.com/[id]/picture
Reference: http://developers.facebook.com/docs/reference/api/