开发者

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

开发者 https://www.devze.com 2023-03-18 00:41 出处:网络
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\'\";

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

精彩评论

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