简体   繁体   中英

Python - getting post id on Facebook GraphAPI with Facepy

i want to get the id of my post something like

graph = GraphAPI(access_token)

graph.post(all data)

print graph.response

unfortunately response is not an attribute for GraphAPI

AttributeError: 'GraphAPI' object has no attribute '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)

response = graph.post(data)

print response['id']

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM