开发者

facebook graph api returning empty json

开发者 https://www.devze.com 2023-04-09 17:23 出处:网络
Using the link to my events automatically generated in the docs here: http://developers.facebook.com/docs/reference/api/ (Events: https://graph.facebook.com/me/events?access_token=...), I can get a js

Using the link to my events automatically generated in the docs here: http://developers.facebook.com/docs/reference/api/ (Events: https://graph.facebook.com/me/events?access_token=...), I can get a json object populated wi开发者_如何学Goth the events I'm RSVP'ed to.

When I request them from my app (having gotten an access token authorized to view user_events), I get back an empty json object.

My app can get back a populated friends list. I also can't get back a populated list of photo albums.

Anybody got a guess for what's up?


Sounds like a permissions problem, has your access token definitely got the user_events permission? Check with a call to /me/permissions You can also use the debug tool at https://developers.facebook.com/tools/debug (put the access token in there) and it will tell you what permissions the token was granted


My app events are also an empry array. I fetch them via graph api.

I guess it is because I created them on behalf of the user. Facebook displays (on the event page itself) as admins the user AND the app, which made me assume, both are owner/creator. The event array though lists only the app user (under the key #creator').

Confusing.

0

精彩评论

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