FQL을 사용하여 페이스 북 스트림 테이블에서 데이터를 가져 오지만, 필자가 필요로하는 결과를 표시하기 위해 어레이를 루프하는 데 약간의 문제가 있습니다. 이 같은 배열을 반환FQL을 통한 루핑 스트림 테이블의 결과
if ($user){
//fql query example using legacy method call and passing parameter
try{
$fql2 = "SELECT app_data
FROM stream
WHERE filter_key in (SELECT filter_key
FROM stream_filter
WHERE
uid=".$user."
AND type='newsfeed')
AND is_hidden = 0";
$param2 = array(
'method' => 'fql.query',
'query' => $fql2,
'callback' => ''
);
$fqlResult2 = $facebook->api($param2);
}
catch(Exception $o){
d($o);
}
}
for ($x=0; $x<200; $x++) {
d($fqlResult2[$x]['app_data']);
}
: 여기 내가 사용하고있는 코드가
Array
(
[attachment_data] => {"name":"name in here",
"href":"url here",
"description":"desc here",
......etc}
)
내가하고 싶은 것은 이름, HREF 같이 'attachment_data'의 값을 얻을 수있다 .. .etc
어떤 아이디어가 있습니까?
나는 아무도 모른다는 것을 가정합니까? = O ( –