Ad

Facbeook Events From Public Page Are Empty

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.

Ad

Answer

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.

Ad
source: stackoverflow.com
Ad