ukscotth Posted November 8, 2011 Share Posted November 8, 2011 Hi, Im creating a facebook app and I want to be able to grab the users full size profile picture and save it locally. Apparently you can do it with this code : <script> FB.api('/me/albums', function(response) { for (album in response.data) { if (response.data[album].name == "Profile Pictures") { FB.api(response.data[album].id + "/photos", function(response) { image = response.data[0].images[0].source; }); } } }); </script> Sorry if this is a stupid question but how would I echo out the image path after funning that ? Im only used to working with php. Thanks, Scott. Quote Link to comment https://forums.phpfreaks.com/topic/250735-grabbing-users-image-from-facebook-help/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.