通过图表API删除Facebook请求 [英] delete facebook requests via graph api
本文介绍了通过图表API删除Facebook请求的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
FB.api('/ me / apprequests',function(response) {
if(response.data [0]){
// code here
};
如何使用相同的图形API方法删除apprequest,我知道这是可能的请求包含access_token ...但在这种情况下,我缓存html,不知道如何
谢谢
解决方案
请使用以下代码(PHP):
file_get_contents('https://graph.facebook.com/'.$rid.'?access_token='.$token。 '& method = DELETE')==true;
// $ rid:Request Id
// $ token:访问令牌
//答案通常只是文本true
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
解决方案
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"
这篇关于通过图表API删除Facebook请求的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文