Reputation: 125
According to the officlal Facebook document, it seems that Facebook Graph API can treat Facebook Group profile pictures. However, the picture link provided at Connections section on the document doesn't return the proper image. The URL redirects to /images/icons/group-types/large/default.png, which is apparently a path for default profile picture, but it actually returns JSON that has data like this:
{
"error": {
"message": "Unknown path components: /icons/group-types/large/default.png",
"type": "OAuthException",
"code": 2500
}
}
Is this a bug of Facebook? Are there any ideas to avoid this?
Thanks in advance!
Upvotes: 0
Views: 438
Reputation: 43816
Looks like a bug, to workaround it, get the image as a String instead of a HTTP redirect:
https://graph.facebook.com/195466193802264?fields=picture
The Response is:
"picture": "/images/icons/group-types/large/default.png"
parse that, and if you get back a relative URL, prepend it with http://www.facebok.com
In this specific case, it works: Link here
In the meantime, you should File a bug report and get this updated in the API
Upvotes: 1