import urllib.request, urllib.parse, urllib.error
params = {}
params['access_token'] = '*****'
params['message'] = 'Hello, Arjun. I like this new API.'
params = urllib.parse.urlencode(params)
f = urllib.request.urlopen('https://graph.facebook.com/arjun/feed', params)
print(f.read())
Http POST Curl in python