delete facebook requests via graph api

守給你的承諾、 提交于 2019-12-13 06:16:58

问题


I am getting latest apprequest like this:

FB.api('/me/apprequests', function(response){

if (response.data[0]) {     
// code here
};

How to delete apprequest using the same graph api method , I know this is possible with request containing access_token ... but in this case I am caching html and didn't know how

Thanks


回答1:


Please use the following code (PHP):

file_get_contents('https://graph.facebook.com/'.$rid.'?access_token='.$token.'&method=DELETE') == "true";   

// $rid: Request Id
// $token: Access Token

// The response is generally just the text "true" 


来源:https://stackoverflow.com/questions/9626943/delete-facebook-requests-via-graph-api

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!