Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to delete a Facebook comment post using the Facebook GRAPH API?
    primarykey
    data
    text
    <p>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 comments on an Event wall. However, since I don't know if it is even possible I decided to see if I could mannually delete a post I made to my own wall first since that is possible. Note I am <strong>NOT</strong> using any SDK; I am just building the URL and entering it in the address bar in Firefox v3.6.17.</p> <p>These posts have helped me alot since I am now starting: <a href="https://stackoverflow.com/questions/5939485/delete-facebook-post-with-graph-api-trouble-getting-this-to-work">Delete facebook post with Graph API - trouble getting this to work</a> and <a href="https://stackoverflow.com/questions/2931387/facebook-sdk-and-graph-api-comment-deleting-error">Facebook SDK and Graph API Comment Deleting Error</a></p> <p>I can see the comment data and all its field via the following: </p> <pre><code>https://graph.facebook.com/[POST_ID]?access_token=[ACCESS_TOKEN] `where [POST_ID] and [ACCESS_TOKEN] were got using the graph API.` </code></pre> <p>However, where do I put the "method=delete" command in the URL? I tried putting it at the end, like </p> <pre><code>https://graph.facebook.com/[POST_ID]?access_token=[ACCESS_TOKEN]?method=delete </code></pre> <p>but that results in a OAuthException stating "Invalid access token signature" because it seems to read the method as part of the access token.</p> <p>I tried putting it after the post_id like </p> <pre><code>https://graph.facebook.com/[POST_ID}?method=delete?access_token=[ACCESS_TOKEN] </code></pre> <p>but that results in an Exception (Unsupported method) because it thinks "access_token=[ACCESS_TOKEN]" is part of the method being called.</p> <p>I see one of the posts cited above states I have to prepend the userid to the object ID when deleting by using </p> <pre><code>DELETE https://graph.facebook.com/673509687_104812882909249?access_token={access_token} `where 673509687 is my userID and 104812882909249 is the objectID` </code></pre> <p>But when I enter</p> <pre><code>DELETE https://graph.facebook.com/[POST_ID}?access_token=[ACCESS_TOKEN] </code></pre> <p>in the Firefox address bar it doesn't recognize it (I didn't think it would anyway) and uses it as a google search query.</p> <p>How do I delete a comment if I have the comment_id and my access_token using the web browser?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload