2012-07-15 65 views
0

我想使用Python Facepy来从我们公司的Facebook site.The事件奇怪的是,一切工作正常,但事件描述中返回的数据丢失:Facepy事件的数据,说明缺少

from facepy import GraphAPI 
graph = GraphAPI("mysecrettoken") 
events = graph.get('ourcompany/events') 
for x in events['data']: 
    print x['description'] 
KeyError: 'description' 

除描述外,所有数据都在那里(名称,start_time)等等等

回答

0

事件描述不是Graph api提供的。我必须为每个事件分别取它。