Take the 2-minute tour ×

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!

share|improve this question
add comment

1 Answer

up vote 0 down vote accepted

Looks like a bug, to workaround it, get the image as a String instead of a HTTP redirect:


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

share|improve this answer
Thank you so much! –  mahata Apr 20 '12 at 16:50
I confirmed that Facebook fixed the bug recently: developers.facebook.com/bugs/175832325866475 –  mahata Jun 29 '12 at 21:18
add comment

Your Answer


