Reputation: 1877
I am able to get the album images fine from profile pictures, via this api call:
facebookModule.requestWithGraphPath("/"+albumId+"/photos", {
fields : 'source,icon'
} [..]
However, I was wondering if there is a way to get the profile pic icons from facebook, or do I have to resize the source image manually in javascript. Thank you.
Upvotes: 0
Views: 931
Reputation: 36
use the FB.api and add field picture.width
FB.api('/me',{
fields: 'name,id,picture.width(100).height(100)'
}, function (response) {
if (response && !response.error) {
console.log(response);
}
});
Upvotes: 1
Reputation: 1943
Along with source and icon, graph api will also return Id of that picture. You can use this id for specific picture like thi
http://graph.facebook.com/{id}/picture?type=album
In case you got question mark photo, try this
https://graph.facebook.com/{id}/picture?type=album&access_token={User accessToken}
Remember to use https when sending accesstoken with query string.
In type you can also write thumbnail or normal.
Upvotes: 0
Reputation: 94409
http://graph.facebook.com/[replace with name or id]/picture
For example: http://graph.facebook.com/zuck/picture
Upvotes: 0