很长一段时间以来,我一直在使用下面的代码来获取各种链接上的点赞数。但现在它突然停止工作了。我没有对代码进行任何更改。我现在不知道在哪里寻找答案或实际出了什么问题。
这是代码:
mysql_real_escape_string($web[$i]);
$site="http://graph.facebook.com/?ids=".$web[$i]."";
$graph= file_get_contents($site);
$json_string=$graph;
$array = json_decode($json_string, true);
$var[$i] =($array[$web[$i]]['shares']);
$web 数组存储所有 URL。接下来我可以尝试什么?