Issue making post request to Facebook open graph API
I'm trying to post on an Event wall on a user's behalf. I have the
publish_stream permission but am having trouble making a post request.
This doesn't work:
$http.post("#{url}/#{id}/feed", {message: message, access_token: token})
But these do:
1)
$http.get("#{url}/#{id}/feed?method=POST&message=#{message}&access_token=#{token}")
2)
$http.post "#{url}/#{id}/feed?access_token=#{token}&message=#{message}"
Any idea why the Facebook API would accept the latter but reject the post
method (like the API requires)? The error I get with the $http.post is
"this method requires an access_token"
No comments:
Post a Comment