I was looking for the best way to get a user profile picture using the Facebook API.
Looking through the documentation, I found this:
You can specify the size of the image you want, with an argument of the type that should be one of the squares (50x50), small (50 pixels wide, variable height), normal (100 pixels wide, variable height) and large (about 200 pixels wide, variable height)
My question is: is there a way to get a profile image with a higher resolution than 200 pixels?
I recently found this solution, but I donβt know how to check if the user has an album in another language:
FB.api('/me/albums', function (response) { for (album in response.data) { // Find the Profile Picture album if (response.data[album].name == "Profile Pictures") { // Get a list of all photos in that album. FB.api(response.data[album].id + "/photos", function(response) { // The image link image = response.data[0].images[0].source; }); } } });
source share