http://graph.facebook.com/?id=http://givingmode.com/
내가 ID를 얻기 위해이 스크립트를 사용하고 나에게이 데이터 이제
{
"id": "http://givingmode.com/",
"shares": 3
}
을 제공하는
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
이 비어 있습니다.
도와주세요.