Log inStart Free Trial
easyCoexistence Official APIs

Disconnecting a Facebook Page from an app

A Facebook Page is disconnected from an app in two ways: the app removes it, with DELETE /{page_id}/subscribed_apps to stop its webhooks and DELETE /{user-id}/permissions to de-authorize it, or the person who connected it removes the app under Business Integrations in Facebook's settings. Meta reports that removal to the app's deauthorize callback, and a data deletion request to its data deletion callback.

easyCoexistence removes a Facebook Page in one step from the dashboard or the Partner API, erasing its token and event forwarding and canceling scheduled posts that never reached Facebook, and answers Meta's deauthorize and data deletion callbacks on its own, with channel.removed sent to platforms.

Business Integrations

Where a person removes an app connected with Facebook Login for Business, which invalidates the user access tokens it held.

Deauthorize callback

A URL Meta pings whenever someone uninstalls the app via Facebook.com without interacting with the app itself.

url + confirmation_code

What a data deletion callback must return as JSON: a status URL and an alphanumeric confirmation code.

21 days

How often Meta sends an app's developers an alert with the user IDs whose data they must delete.

458

Error 190 subcode for a token whose person revoked or never granted the app's authorization: has not authorized application.

How does a person remove an app from their Facebook Pages?

From Facebook's settings, signed in as the person who connected the Pages. Facebook's Help Center gives the steps, and the removal covers the Pages that person granted rather than one at a time:

  • Click the profile picture in the top right, then Settings & privacy, then Settings.
  • Click Business Integrations on the left side.
  • Select the app, click Remove, then Remove again to confirm.
  • From then on it can no longer manage the person's ads, Pages, groups, events or messages, though it may keep information shared earlier.

What happens to the Page access tokens?

They stop working for that app. Facebook's Help Center says a removed integration can no longer manage the person's Pages, and Meta's Facebook Login for Business guide says removing it invalidates the user access tokens the app holds for that person, the tokens Page tokens are obtained from. Meta sends no notice when a token stops working, so an app learns it at its next call: a revoked authorization comes back as error 190 with subcode 458, User {user-id} has not authorized application {app-id}. The fix is a fresh sign-in.

What is the deauthorize callback?

A URL the app sets in the App Dashboard, which Meta pings whenever someone uninstalls the app via Facebook.com without going through the app. Since Meta does not otherwise tell an app that its tokens stopped working, the callback is the app's cue to stop using that person's Pages and erase their tokens. easyCoexistence's handler first checks the signed request against the app secret, so a forged call changes nothing.

What must a data deletion callback do?

Meta's documentation sets out what it expects, and warns that failing it may get the callback removed or the app disabled:

  • Listen at an HTTPS URL entered in the Data Deletion Request URL field of the app's settings.
  • Accept a POST whose signed_request carries the person's app-scoped ID as user_id.
  • Check the signed_request's HMAC-SHA256 signature with the app secret, as Meta's sample code does.
  • Start deleting the data the app received from Facebook about that person.
  • Answer with JSON holding url, where the person can follow the request, and confirmation_code.
What Meta posts, decoded, and the answer it expects (Meta's own examples)
// signed_request, decoded
{
  "algorithm": "HMAC-SHA256",
  "expires": 1291840400,
  "issued_at": 1291836800,
  "user_id": "218471"
}

// the callback's answer
{
  "url": "https://www.example.com/deletion?id=abc123",
  "confirmation_code": "abc123"
}

How does a person send a data deletion request?

Meta's data deletion guide describes it from Facebook's Apps and Websites settings: after removing the app, the person opens View Removed Apps and Websites, chooses View beside the app and clicks Send Request, which is also how Meta suggests testing the callback. Meta also sends the app's developers an alert at 21-day intervals with the user IDs whose data must be deleted, in a file kept for 60 days in the app's advanced settings.

How does an app disconnect a Page itself?

With two Graph calls, depending on how far it goes. DELETE /{page_id}/subscribed_apps, made with an app access token, removes the app's own webhook subscription from the Page, so its feed and Messenger events stop. DELETE /{user-id}/permissions de-authorizes the app for that person: their user access tokens are invalidated, and they have to log in and grant access again as if for the first time.

What does easyCoexistence do when you remove a Page?

Remove this channel, on the Page's screen in the dashboard, or DELETE /api/v1/channels/:id from the Partner API, unsubscribes the Page from Meta's webhooks and erases its Page token, its event forwarding URL and that URL's signing secret. Posts scheduled for the Page that never reached Facebook are canceled rather than left to fail, comment-to-DM rules stop, and the connection's charge ends with the current billing cycle.

What happens when the app is removed on Facebook?

Meta calls easyCoexistence's deauthorize callback, naming the person by their app-scoped ID. easyCoexistence checks the signed request against the app secret, marks the Pages that person connected as removed, erases their tokens and event forwarding, and takes them out of the connection count. A data deletion request does the same and answers Meta with a link to easyCoexistence's privacy notice and a confirmation code.

What data stays after removal?

The Page's ID and name stay on record, so connecting it again restores it, and they are deleted on request under easyCoexistence's privacy notice. Forwarded feed, mention and Messenger events are passed on as they arrive, with no copy kept. With automations on, message text is kept 7 days and automation run logs 30 days, and a canceled post's text and preview are deleted after 30 days.

How does a platform learn a customer's Page was removed?

From its signed status events. The Partner API sends channel.removed when the Page is removed from the dashboard, through DELETE /api/v1/channels/:id or from Facebook's settings, and channel.disconnected when Meta stops accepting its token and the owner needs to sign in again. Each event carries the platform's external_ref when the connect session set one.

How to set it up

  1. Remove the channel in easyCoexistenceOpen the Page's screen in the dashboard, choose Remove this channel and confirm, or call DELETE /api/v1/channels/:id from your backend.
  2. Remove the app in FacebookTo end the app's access to the Pages you granted, open Settings & privacy, then Settings and Business Integrations, and remove the app.
  3. Ask for deletionWrite to the contact in easyCoexistence's privacy notice to have the Page's remaining record deleted.

Common mistakes

  • Removing the app in Business Integrations to drop one Page. It ends the app's access to the Pages that person granted, so remove that single channel in easyCoexistence instead.
  • Removing only the connector in Claude or ChatGPT. That ends the assistant's access, but the Page stays connected, and billed, until its channel is removed in easyCoexistence.
  • Answering a data deletion callback with an empty body. Meta expects a status URL and a confirmation code, and may remove the callback or disable the app without them.
  • Acting on a callback without checking its signature. Verify the signed_request with the app secret, as Meta's sample does, before trusting the user ID inside it.
Doing this with EasyCoexistence

US$ 9 to US$ 0.75 per connection per month, falling as you add connections, with the first 3 days free.

easyCoexistence is a multichannel API and MCP server that connects AI agents such as Claude and ChatGPT to WhatsApp, Instagram, TikTok, Facebook and more. On WhatsApp it uses Coexistence: the business keeps using its number in the WhatsApp Business app while the AI works through Meta's official API.

Frequently asked questions

Does removing an app in Facebook delete my data?

It ends the app's access to your Pages and to new private information, but the app may keep what it received earlier. Ask it to delete that; Meta's data deletion callback is how apps receive such requests.

What happens to posts scheduled for a removed Page?

Removing the Page in easyCoexistence cancels the posts that had not reached Facebook yet, with no failure email, and posts already published stay on the Page.

Does removing a Page stop its charge?

Yes. That Page's connection is billed to the end of the current cycle, then leaves your total count.

Can I connect the Page again later?

Yes. Choose New connection in the dashboard, sign in with Facebook and pick the Page; its earlier record comes back with a new token.

Keep reading

Connect your first channel in two minutes.

No platform reviews to wait for. Connect WhatsApp, Instagram, TikTok or another channel, then ask your AI to post, reply or report, and watch it work.

  • 3 days free
  • Cancel any time
  • Official APIs only
  • Monitored 24/7

Verified on