request_path = str(facebook_id) + '/feed'
post_data = urllib.parse.urlencode(post_data)
response = urllib.request.urlopen('https://graph.facebook.com/%s' % request_path,
    post_data)
Automatically posting to facebook page with python