Update API \ Delete a video shared on a Facebook page

Resource/URI PUT DELETE
Facebook · Page Post /update/identities/<identity_token>/facebook/page/<pageid>/post/<postid>.json Update Page Post Delete Page Post
Facebook · Page Picture /update/identities/<identity_token>/facebook/page/<pageid>/picture/<pictureid>.json - Delete Page Picture
Facebook · Page Video /update/identities/<identity_token>/facebook/page/<pageid>/video/<videoid>.json - Delete Page Video
Pinterest · Pin /update/identities/<identity_token>/pinterest/pin/<pinid>.json Update Pin Delete Pin
Twitter · Tweet /update/identities/<identity_token>/twitter/post/<postid>.json - Delete Tweet

Workflow

Request: the code to send to the API

Send an API request to the following endpoint to delete a video that has been shared on a Facebook page:

DELETE /update/identities/<identity_token>/facebook/page/<pageid>/video/<videoid>.json

The <identity_token> is obtained whenever one of your users connects using Facebook. The <pageid> must be part of the pages that the identity is currently configured to be an administrator of and the <videoid> must be the identifier of a video uploaded to that page.

In order to use this endpoint the permission Manage Pages (manage_pages) must be enabled in the Facebook settings in your OneAll account and the user must have granted that permission when he logged in with Facebook.

Result: the code returned by the API

The API either returns a HTTP status code 200 if the video was deleted successfully or an appropriate message body with further details on the error that occured.

Response Example

{
  "response": {
    "request": {
      "date": "Fri, 04 Oct 2019 09:54:46 +0200",
      "resource": "/update/identities/95681432-e02d-4a0b-ac6a-5c59d0e1fdfd/facebook/page/156657567747763/video/2505330642880432.json",
      "status": {
        "flag": "success",
        "code": 200,
        "info": "The video has successfully been removed."
      }
    }
  }
}

User Contributed Notes