How to post a comment using Facebook API

BestR picture BestR · Jun 22, 2015 · Viewed 14.3k times · Source

I'm trying to post a comment to my facebook using facebook API. I'm trying to send this request:

https://graph.facebook.com/{post id}/comments/?access_token={token}&message=hello

This return to me list of comments but doesn't post the message I sent. What should I do to post my message?

Thanks.

Answer

sadaiMudiNaadhar picture sadaiMudiNaadhar · Nov 28, 2018

Update

As of April 24,2018, the publish_actions permission has been removed. Please see the Breaking Changes Changelog for more details. To provide a way for your app users to share content to Facebook, we encourage you to use our Sharing products instead.