开发者

Facebook: Anyone knows why I can't get the event's I'm attending?

I'm trying to get a list of facebook events I'm attending. I have these codes:

$fql = "SELECT eid FROM event_member WHERE uid = 100000266996446 AND rsvp_status = 'attending'";

$param  =   array(
 'method'    => 'fql.query',
 'query'     => $fql,
 'callback'  => ''
);

$fqlResult   =   $facebook->api($param);

foreach( $fqlResult as $keys => $values ){
    echo "<div>" . $values['eid'] . "[][]</div>";
}

Many thanks for any help! :开发者_如何学JAVA)


With your code, please note that you cannot do it if you're using a profile uid. It will only work with fan pages.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜