使用cURL PHPGraph API在Facebook上发表评论回复

使用cURL PHPGraph API在Facebook上发表评论回复,第1张

概述我知道如何在朋友的墙上发布信息.例如: $url = 'https://graph.facebook.com/' . $fbId . '/feed';$attachment = array( 'access_token' => $accessToken, 'message' => $msg, 'name' => 我知道如何在朋友的墙上发布信息.例如:

$url = 'https://graph.facebook.com/' . $fbID . '/Feed';$attachment =  array(        'access_token'  => $accesstoken,'message'       => $msg,'name'          => $name,'link'          => $link,'description'   => $desc,'picture'       => $logo,);// set the target url$ch = curl_init();curl_setopt($ch,CURLOPT_URL,$url);curl_setopt($ch,CURLOPT_SSL_VERIFYPEER,FALSE);curl_setopt($ch,CURLOPT_SSL_VERIFYHOST,2);curl_setopt($ch,CURLOPT_POST,true);curl_setopt($ch,CURLOPT_POSTFIELDS,$attachment);curl_setopt($ch,CURLOPT_header,0);curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);$go = curl_exec($ch);curl_close ($ch);$go = explode(":",$go);$go = str_ireplace('"','',$go[1]);$go = str_ireplace('}',$go);return $go;

但我想知道,如何使用cURL PHP或Facebook Graph API发布对特定Feed的回复.任何人都可以帮我解决这个问题吗?

解决方法 你试过这个:

https://graph.facebook.com/“.$go.”/评论

我想,如果您可以使用/ Feed发布Feed,那么您可以使用/ comment url发表评论.

谢谢.

总结

以上是内存溢出为你收集整理的使用cURL PHP / Graph API在Facebook上发表评论回复全部内容,希望文章能够帮你解决使用cURL PHP / Graph API在Facebook上发表评论回复所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/yw/1027504.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-23
下一篇 2022-05-23

发表评论

登录后才能评论

评论列表(0条)

保存