[英]Python - getting post id on Facebook GraphAPI with Facepy
i want to get the id of my post something like 我想获取我的帖子的ID,例如
graph = GraphAPI(access_token) 图= GraphAPI(access_token)
graph.post(all data) graph.post(所有数据)
print graph.response 打印graph.response
unfortunately response is not an attribute for GraphAPI 不幸的是,响应不是GraphAPI的属性
AttributeError: 'GraphAPI' object has no attribute 'response' AttributeError:“ GraphAPI”对象没有属性“ response”
anyone know how to get the post id or the comment id etc (like using Graph API Explorer , after every request you get the post id) 任何人都知道如何获取帖子ID或评论ID等(例如使用Graph API Explorer,在每次请求后您都获得帖子ID)
response = graph.post(data)
print response['id']
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.