In recent years, Facebook has been in the process of deprecating the use of global user IDs, in order to increase user privacy, redefining their privacy policy regarding information-sharing between apps.
Recently, this process came to an end, and now Facebook no longer supports searching user information based on their global ID/username, which includes their profile pictures.
For example, while Mark Zuckerberg has an active Facebook account accessible via the following URL:
https://www.facebook.com/zuck
His Facebook account's details (including the profile picture) are now publicly unavailable unlike before:
https://graph.facebook.com/zuck
If you're utilizing your own Facebook app, you should use the unique, application-specific numeric ID which is provided by Facebook (for every user who signs into it) in order to fetch the user's profile image.
For example using our Node.js SDK:
cloudinary.v2.image("65646572251.jpg", {type: "facebook"})
Returns an image tag with a working URL:
<img src='http://res.cloudinary.com/victorli/image/facebook/65646572251.jpg' />
Comments
0 comments
Please sign in to leave a comment.