Maarten
Maarten

Reputation: 101

Error on Facebook official_events Graph API "(#3) Application does not have the capability to make this API call."

I can't get the official_events API to work in the Facebook API.

I made a Facebook app:

I request an access token with the following permissions. (Probably more then needed but just trying)

I login with myself or with the Facebook OpenGraph API test user. I created a test page with both users.

I request the pages with access tokens with a call to the "me/accounts" endpoint.

With the page token I can create a message on the test page in the Graph API Explorer:

POST to <page_id>/feed

{
  "message": "Hello world"
}

That works! So the page token is working.

Then I want to create an event on the page with the API described here: https://developers.facebook.com/docs/pages/official-events/

Post to /official-events

{
  "name": "test event",
  "description": "some description",
  "cover": {
    "source": "https://testimages.org/img/testimages_screenshot.jpg",
    "offset_x": "0",
    "offset_y": "0"
  },
  "category": "FAMILY_EVENT",
  "timezone": "US/Pacific",
  "start_time": "2022-12-24 17:45:12"
}

But i receive this error:

{
  "error": {
    "message": "(#3) Application does not have the capability to make this API call.",
    "type": "OAuthException",
    "code": 3,
    "fbtrace_id": "AzueJBRnUjeqZh7vO0RxnG5"
  }
}

Does anyone have any idea?

Upvotes: 5

Views: 1197

Answers (1)

d&#246;ner666
d&#246;ner666

Reputation: 21

it seems that facebook has blocked the official event api. More info here: https://developers.facebook.com/products/official-events-api/

Upvotes: 0

Related Questions