OverviewProductsPlatformsAPI ReferenceResources
Posts

Unpin post

POSThttps://zernio.com/api/v1/posts/{postId}/unpin

Unpins a published Facebook Page post from the top of its Page. Only Facebook posts can be unpinned; any other platform answers 400 platform_not_supported.

Authentication

AuthorizationBearer tokenRequired

API key authentication: send your Zernio API key in the Authorization header, prefixed with Bearer.

Path parameters

postIdstringRequired

Body

application/json

What every request needs

platformstringRequired

Must be facebook. Any other value answers 400 platform_not_supported.

Optional parameters1 field
accountIdstring

Which Facebook account's copy to change when the post was published to several Facebook accounts. Required in that case.

Responses

Success· the request worked

Errors· the request failed

POST/v1/posts/{postId}/unpin
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.posts.unpinPost({  path: {    postId: 'post_abc123',  },  body: {    platform: 'facebook',  },});console.log(data);
{  "success": true,  "pinned": false,  "platformPostId": "123456789012345_987654321098765",  "message": "Post unpinned from the Facebook Page"}
OpenAPI specification
Was this page helpful?