I am trying to use urllib2.urlopen to perform GET and POST requests via the Facebook Graph API. I noticed from here: https://stackoverflow.com/questions/2690723/facebook-graph-api-and-django that I can perform GET request fairly easily.
And from here: How to send a POST request using django? and the Python docs http://docs.python.org/library/urllib2.html it seems that it needs the data param to perform a POST request.
But looking at the Facebook's API: http://developers.facebook.com/docs/reference/api/event/#invited it says
You can invite users to an event by issuing an HTTP POST to /EVENT_ID/invited/USER_ID
I am not sure how I could do that with urlopen, since opening this url directly is going to only check if the user has been invited, as mentioned on the API page:
You can check whether a specific user has been invited to an event by issuing an HTTP GET to /EVENT_ID/invited/USER_ID:
Appreciate the input.