After getting posts from a group using the facepy package I noticed that some picture are being retrieved whilst others are not. I am aware that some posts do not have any pictures attached but I have found others which do not have a 'picture' key entry in the data dict yet when I open the post in my browser I can see that there are in fact images attached to the post. This is the code that I am using.
from facepy import GraphAPI
ACCESS_TOKEN = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
graph = GraphAPI(ACCESS_TOKEN)
groupIDs = (['xxxxxxxxxxxxxxx'])
groupData = graph.get(groupIDs[0] + "/feed", page=False, retry=3, limit=600)
dataDict = groupData['data']
for data in dataDict:
try:
picture = property['picture']
except Exception as e:
#no picture available
continue
Any idea of how to get these images?