Is there a query parameter to change facebook profile image size? -
until i've used facebook graph request user's profile picture. response like
https://fbcdn-profile-a.akamaihd.net/hprofile-ak-prn1/t5/49852_1127262413_1077_q.jpg now i've changed better resolution picture. problem have previous user need new pictures for, have change url include new size :
https://fbcdn-profile-a.akamaihd.net/hprofile-ak-prn1/t5/49852_1127262413_1077_q.jpg?size=600 is there way ? or have make new requests server new pictures ?
thanks
in javascript sdk, can profile picture of current user following. user has grant permission application , should have initiate javascript-sdk
fb.api('/me/picture', function(response) { // response.data.url url photo }); to change size, give additional parameters height , width. change values parameters desired size. also, instead of "me", can provide facebook user id
me/picture?&height=200&width=200 please see link
Comments
Post a Comment