-1

I am able to fetch event details in my php based website through Facebook graph API only if the event is uploaded in facebook page. But if I use a personal fb account instead of fb page I am not able to get any data. In both cases I am using same access token, App ID and Secret key, the only variable is facebook account id. I could not find any answers on internet so kindly help.

Ian
  • 30,182
  • 19
  • 69
  • 107
Shubham Pokhriyal
  • 512
  • 1
  • 7
  • 17

1 Answers1

0

You need user_events permission from the user whose events you want to read.

CBroe
  • 91,630
  • 14
  • 92
  • 150
  • I want to access my own event. It is a public event and I don't want "Log in with facebook" button. I want to use those events to show on my website – Shubham Pokhriyal May 27 '16 at 04:24
  • And my event privacy is set to public plus I have also set my account priivacy settings to public. – Shubham Pokhriyal May 27 '16 at 04:48
  • That doesn’t matter. Public on facebook.com does not necessarily mean publicly available via API as well. It is a user event, and as such needs permission from the user to read it. If you don’t like that – then create a page, and publish your events via that. – CBroe May 27 '16 at 08:02