How to specify parameters with Graph API POST?

tarahestan

New Member
I have a post I want to comment on using the API. According to the doc's:You can write to the POST_ID/comments connection to post a comment to the post by issuing an HTTP POST request with the publish_stream permission and following parameters.\[code\]Parameter Description Type Requiredmessage Comment text string yes\[/code\]So I'm pressure that the API call looks like this:\[code\]$postId = "1234567890";$facebook->api($postId."/comments", 'POST');\[/code\]But where do I specify the message parameter?I tried:\[code\]$facebook->api($postId."/comments", 'POST', array("message"=>"hello world");\[/code\]but no dice.
 
Back
Top