Sven Koluem
Sven Koluem

Reputation: 687

Get an array of events throug the facebook-api

Still don't got it, how to use the facebook api, for things like that.

This one succeeds...

$userlocation = $facebook->api('/me', 'get', array("fields"=>"name,location"));

This one returns an empty aray...

$events= $facebook->api('/me/events', 'get', array("fields"=>"id, owner, name,location"));

thx..

Upvotes: 0

Views: 1676

Answers (1)

ifaour
ifaour

Reputation: 38135

Most likely you didn't acquire the user_events permission!
alt text

Upvotes: 1

Related Questions