How to get response from graph api

58 views
Skip to first unread message

Abhijeet Pal

unread,
Jun 10, 2020, 11:39:07 AM6/10/20
to PythonForFacebook
Hi, is there a way to get a response from the API, this is my code and I want to keep a log of the successful posts.
graph = facebook.GraphAPI(


            access_token
=self.kwargs['access_token'], version="3.0")


graph
.put_object(
            parent_object
=self.kwargs['page_id'],
            connection_name
="feed",
            message
=self.kwargs['content'],
       
)

Message has been deleted

mike b

unread,
Jul 6, 2020, 11:02:08 AM7/6/20
to PythonForFacebook
I was struggling with the same thing myself, until I RTFM'ed a bit more.... and am now feeling very silly ^^
.put_object returns a dict, just assign it to something then you can see whatever you want by calling facebooks read-after-write feature.
https://developers.facebook.com/docs/graph-api/advanced/
Reply all
Reply to author
Forward
0 new messages