Security & PasswordsDocumentedScanned

facebook

Guidance for Meta/Facebook Graph API integrations: app setup, auth, webhooks.

Share:

Installation

npx clawhub@latest install facebook

View the full skill documentation and source below.

Documentation

Facebook

Social media platform (Pages API).

Environment

export FACEBOOK_ACCESS_TOKEN="xxxxxxxxxx"  # Page Access Token
export FACEBOOK_PAGE_ID="xxxxxxxxxx"

Get Page Info

curl "" \
  -H "Authorization: Bearer $FACEBOOK_ACCESS_TOKEN"

Get Page Posts

curl ")" \
  -H "Authorization: Bearer $FACEBOOK_ACCESS_TOKEN"

Create Post

curl -X POST "" \
  -H "Authorization: Bearer $FACEBOOK_ACCESS_TOKEN" \
  -d "message=Hello from automation!"

Post with Image

curl -X POST "" \
  -H "Authorization: Bearer $FACEBOOK_ACCESS_TOKEN" \
  -F "url=" \
  -F "caption=Check this out!"

Get Post Comments

curl "" \
  -H "Authorization: Bearer $FACEBOOK_ACCESS_TOKEN"

Get Page Insights

curl "" \
  -H "Authorization: Bearer $FACEBOOK_ACCESS_TOKEN"

Reply to Comment

curl -X POST "" \
  -H "Authorization: Bearer $FACEBOOK_ACCESS_TOKEN" \
  -d "message=Thanks for your comment!"

Links

  • Business:
  • Docs: