Hosted tool
Publish to Facebook
Coming
Publish content to an explicitly authorized connected account.
social.facebook.publishversion 1
Price
0.01
credits per call
Availability
Coming
Published in the catalog, not yet callable.
Access
Coming
Category Social Media
Input
{
"additionalProperties": false,
"properties": {
"account_id": {
"maxLength": 80,
"minLength": 1,
"type": "string"
},
"message": {
"maxLength": 3000,
"minLength": 1,
"type": "string"
}
},
"required": [
"account_id",
"message"
],
"type": "object"
}Result
object<{post_id:string,url:string}>Default fields: post_id url
Limits
| Synchronous deadline | 15 s |
|---|---|
| Maximum result | 65,536 bytes |
| Result pages | 1 |
| Maximum upstream read | 1,048,576 bytes |
Example call
Provisional: the invoke contract ships with the execution lane
curl https://haidercode.ai/v1/tools/social.facebook.publish/invoke \
-H "Authorization: Bearer <HK_KEY>" \
-H "Content-Type: application/json" \
-H 'Idempotency-Key: facebook-publish-1' \
-d '{"arguments":{"account_id":"…","message":"…"},"max_credits":"0.05"}'Bound every paid call with max_credits, and repeat the same Idempotency-Key to recover a result rather than pay twice.