How to delete a Facebook comment post using the Facebook GRAPH API?

前端 未结 1 1338
[愿得一人]
[愿得一人] 2021-01-07 08:08

I started researching this because I wanted to be able to delete a comment on the wall of a Facebook Event, because the \"Remove post\" doesn\'t seem to be applicable to com

相关标签:
1条回答
  • 2021-01-07 08:59

    You have a big problem with your urls :

    https://graph.facebook.com/[POST_ID]?access_token=[ACCESS_TOKEN]?method=delete
    

    Should be :

    https://graph.facebook.com/[POST_ID]?access_token=[ACCESS_TOKEN] & method=delete
    

    Identically,

    https://graph.facebook.com/[POST_ID}?method=delete?access_token=[ACCESS_TOKEN]
    

    should be :

    https://graph.facebook.com/[POST_ID}?method=delete  & access_token=[ACCESS_TOKEN]
    

    So you have to use the ? before entering your parameters and then & between each parameter and the order should not have any importance ..

    0 讨论(0)
提交回复
热议问题