リンク
http://graph.facebook.com/?id=http://givingmode.com/
このデータをくれ
{
"id": "http://givingmode.com/",
"shares": 3
}
今、私はこのスクリプトを使用してIDを取得し、PHP変数を共有しています
$File= file_get_contents('http://graph.facebook.com/?id=http://givingmode.com/');
$p=json_decode($File);
foreach ($p as $loc)
{
$fb_tot_share=$loc->shares;
}
しかし、何が間違っているのかわかりません。
私は$fb_tot_share
空白になっています。