I am using facebook's graph api to get basic info about a user. While sending a request to /me?fields=id,name,picture, I get the following response
{ "id": "645636655991071", "name": "Rahul Dahal", "picture": { "data": { "height": 50, "is_silhouette": false, "url": "https://platform-lookaside.fbsbx.com/platform/profilepic/?asid=645636655991071&height=50&width=50&ext=1619960875&hash=AeSav5aZhqO_ExOLOPc", "width": 50 } } } The url property of the picture object has the URL to the picture, but it expires after certain period of time.
This means I cannot store that URL in the database.
How can I get the updated URL to the picture ?
https://stackoverflow.com/questions/66919896/get-updated-url-to-facebook-users-profile-pic April 02, 2021 at 09:17PM
没有评论:
发表评论