-1

I want to get all the events from a public Facebook page: https://www.facebook.com/vaitmusik/events

Using the offical module I will always get back an empty array.

const FB = require("fb");

FB.api(
  "oauth/access_token",
  {
    client_id: "123456789",
    client_secret: "9c88casdasfdsfsdfasd",
    grant_type: "client_credentials",
  },
  function(oAuthResponse) {
    FB.api(
      "/Vaitmusik/events",
      {
        access_token: oAuthResponse.access_token,
      },
      function(eventsResponse) {
        /*  
          eventsResponse

          { data: [] }

        */
      }
    );
  }
);

I expected to have an array with all the events.

Christopher
  • 345
  • 5
  • 11

1 Answers1

1

https://developers.facebook.com/docs/graph-api/reference/page/events/

This is a restricted edge. You cannot request access at this time.

In other words, it is not possible to get Page Events.

andyrandy
  • 72,880
  • 8
  • 113
  • 130