mysql - PHP Code for getting Facebook likes not working anymore -
i have been using below code since long time number of likes on various links. stopped working. did no changes code. have no idea answers or has gone wrong. here' code:
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']); the $web array stores urls. help?
they have removed open rest api, need implement oauth2.0 in application.
the steps involved : 1) register app receive customerkey , secret code 2) use both key , code receive accesstoken 3) uses same url using, along new parameter accesstoken=/*the 1 received*/
Comments
Post a Comment