I was able to fetch facebook events through my code until couple of days back and it used to return me proper JSON data with all the requested fields.

Suddenly i am trying to do it today again and i get only id value and nothing else. Any idea what went wrong.

http://graph.facebook.com/userid?limit=20&fields=events.fields(description,end_time,location,name,ticket_uri,venue)&access_token=access_token

is the request url format i am using.

有帮助吗?

解决方案

You must use https:// when passing an access token.

Possibly, your access token don't let you fetch those details since you have not authorized your app to fetch user_events. You can check the access token here.

So, you have to check whether the user have authorized your app for this action or not before making this query. You can also fetch the permissions that user has granted at any time using-

/me/permissions
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top