Skip to content

ToolsFacebook

Docs

Tools

Facebook

Pages and their posts.

Things to ask#

Ask your agent in plain words. It picks the tool.

  • What are Nike's Facebook page followers and contact details?
  • Show me the last 10 posts from this Facebook page and how people reacted.
  • Does this local business list its opening hours on Facebook?

Tools in Facebook#

2 tools. Prices are in credits; 1,000 credits are $1.

ToolUse it whenCost
facebook_get_pageYou need a business's Facebook page: followers, category, contact details and hours.1.65 credits per call
facebook_get_postsYou need what a Facebook page has posted recently and how it landed.1.65 credits per post

Get a Facebook page#

Toolfacebook_get_page
Reads
Good for
You need a business's Facebook page: followers, category, contact details and hours.
Not the tool for
Its posts (use facebook_get_posts).
What you get
The page: name, category, about, followers, likes, phone, email, website, address and hours.
Cost
1.65 credits per call. Cached 24 hours: a cache hit costs 0.825 credits.

Parameters

NameTypeRequiredDescription
urlstringYesThe Facebook page URL, e.g. https://www.facebook.com/nike
Example
{
  "name": "facebook_get_page",
  "arguments": {
    "url": "https://www.facebook.com/nike"
  }
}

Get Facebook page posts#

Toolfacebook_get_posts
Reads
Good for
You need what a Facebook page has posted recently and how it landed.
Not the tool for
The page's details (use facebook_get_page).
What you get
Recent posts with text, date, reactions, comments and shares.
Cost
1.65 credits per post. Cached 1 hour: a cache hit costs 50% of the live price.

Parameters

NameTypeRequiredDescription
urlstringYesThe Facebook page URL, e.g. https://www.facebook.com/nike
limitintegerNoHow many posts to return, at most 100. Default 20.
Example
{
  "name": "facebook_get_posts",
  "arguments": {
    "url": "https://www.facebook.com/nike",
    "limit": 10
  }
}