I am trying to make a simple program to post something on my wall in Fcebook in Python. I tried using this example from a pythonforfacebook :
import facebook oauth_access_token = "****" graph = facebook.GraphAPI(oauth_access_token) me = "****" profile = graph.get_object(me) graph.put_object(me, "feed", message="I am writing on my wall!")
I tried to go to the developer center and make an application. For "Choose how your application integrates with Facebook," I selected "Website with Facebook Login" (I actually do not have a website, I just have a program that should post to my facebook wall, but this is the closest an option that matches What I want to do ...).
However, when I run this, it says:
$ python a.py Traceback (most recent call last): File "a.py", line 7, in <module> graph.put_object(me, "feed", message="I am writing on my wall!") File "/usr/lib64/python2.7/site-packages/facebook.py", line 140, in put_object post_args=data) File "/usr/lib64/python2.7/site-packages/facebook.py", line 298, in request raise GraphAPIError(response) facebook.GraphAPIError: (
How can I log in as a user and authorize my application? Am I even right? I donβt actually have a website, I just have a program, for the website field I literally entered β http://google.com β and it worked.
source share