Can't use Python for Facebook and Graph API

108 views
Skip to first unread message

tled...@ensc.fr

unread,
Aug 17, 2018, 4:17:30 AM8/17/18
to PythonForFacebook

Hi,

Everytime I run my script :

import facebook

application_id =  "#"
application_secret = "#"
facebook_user_id = "#"
page_ID = "#"
access_token = "#"

graph = facebook.GraphAPI(access_token=access_token)
graph.put_object(page_ID, "feed", message='My message goes here')

 I get :

> facebook.GraphAPIError: Error validating application. Application has been deleted.

Traceback (most recent call last):

  File "import_facebook.py", line 11, in <module>

    graph.put_object(page_ID, "feed", message='My message goes here')

  File "/Users/#/src/facebook-sdk/facebook/__init__.py", line 180, in put_object

    method="POST")

  File "/Users/#/src/facebook-sdk/facebook/__init__.py", line 290, in request

    raise GraphAPIError(result)

facebook.GraphAPIError: Error validating application. Application has been deleted.


Is this because Facebook relase a new version of its Graph API ?

By the way how is the sdk going to by-pass the App Review from Facebook ? Do we need to create a Facebook App to make it work ?

Thank you for your time,

Reply all
Reply to author
Forward
0 new messages