Note that there are some explanatory texts on larger screens.

plurals
  1. POFacebook SDK and Graph API Comment Deleting Error
    primarykey
    data
    text
    <p>Working with the Facebook php SDK's, I am having a lot of trouble figuring out how to delete comments, given its id and xid.</p> <p>At first I was using the REST API, where you can call 'comments_remove($xid, $id);' to delete a comment. The problem with this method came when the xid parameter only accepts alphanumeric characters and underscores. Based on the documentation (<a href="http://developers.facebook.com/docs/reference/fbml/comments" rel="nofollow noreferrer">http://developers.facebook.com/docs/reference/fbml/comments</a> ) a valid XID can be the result of any url_encode. </p> <p>Now I am testing my luck with the new GRAPH api. Looking at <a href="http://developers.facebook.com/docs/api" rel="nofollow noreferrer">http://developers.facebook.com/docs/api</a> under 'Deleting Objects', It seems that comment deleting is definitely supported. However, I have tried sending a DELETE request, and I have also tried sending POST and GET to the object url with the argument 'method=delete'.</p> <p>No matter how I try it, I always get the same error: </p> <p>{"error":{"type":"GraphMethodException","message":"Unsupported delete request."}}</p> <p>I am sending the access token as a parameter as well. The access token that I am sending is the access token saved in the facebook cookie from the single sign on javascript cookie. These are all comments made on my application. Does this happen to anyone else, or am I simply not doing this right?</p> <p>Any help or guidance is GREATLY appreciated.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    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