response = graph.get(path='oauth/access_token', client_id=app_id,
    client_secret=app_secret, redirect_uri=post_login_url, code=code)
data = parse_qs(response)
graph = GraphAPI(data['access_token'][0])
graph.post(path='me/feed', message='Your message here')
How to get Facebook access token using Python library?