How to programmatically post to my own wall on Facebook?

How to programmatically post to my own wall on Facebook?

I'm trying to make a simple program to post something to my wall on
Fcebook in Python. I tried using this example from 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 going to the developer center and making an App. For "Select how
your app integrates with Facebook",I chose "Website with Facebook Login".
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: (#200) The user hasn't authorized the application
to perform this action
How can I log in as the user and authorize my App? Am I even taking the
right approach? 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.