How to post a comment using Facebook API

15,468

Solution 1

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.

Solution 2

You should make a POST request and make sure you have all the permissions required to publish. Docs here.

Share:
15,468
BestR
Author by

BestR

Updated on June 04, 2022

Comments

  • BestR
    BestR almost 2 years

    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.