Digital Marketing Facebook Marketing API . 1 year ago

Facebook API - How do I get a Facebook user's profile image through the Facebook API (without requiring the user to “Allow” the application)

Facebook API - How do I get a Facebook user's profile image through the Facebook API (without requiring the user to “Allow” the application)

0 views   1   0 likes   0 shares Tuteehub forum manpreet 1 answers
_x000D_ _x000D_ I'm working on a CMS that fetches a user's profile image from their Facebook URL (that is, http://facebook.com/users_unique_url). How can I accomplish this? Is there a Faceboook API call that fetches a user's profile image URL without the user needing to Allow the application?
tuteehub_quiz
Take Quiz To Earn Credits!

Turn Your Knowledge into Earnings.

profilepic.png

Tuteehub forum answer Answers (1)


profilepic.png
manpreet Tuteehub forum best answer Best Answer 1 year ago
_x000D_ Simply fetch the data through this URL: http://graph.facebook.com/userid_here/picture Replace userid_here with id of the user you want to get the photo of. You can also use HTTPS as well. You can use the PHP's file_get_contents function to read that URL and process the retrieved data. Resource: http://developers.facebook.com/docs/api Note: In php.ini, you need to make sure that the OpenSSL extension is enabled to use thefile_get_contents function of PHP to read that URL.
0 views   0 shares
Related Tags