Tools
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.
| Tool | Use it when | Cost |
|---|---|---|
facebook_get_page | You need a business's Facebook page: followers, category, contact details and hours. | 1.65 credits per call |
facebook_get_posts | You need what a Facebook page has posted recently and how it landed. | 1.65 credits per post |
Get a Facebook page#
Tool
Readsfacebook_get_page- 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
| Name | Type | Required | Description |
|---|---|---|---|
url | string | Yes | The 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#
Tool
Readsfacebook_get_posts- 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
| Name | Type | Required | Description |
|---|---|---|---|
url | string | Yes | The Facebook page URL, e.g. https://www.facebook.com/nike |
limit | integer | No | How many posts to return, at most 100. Default 20. |
Example
{
"name": "facebook_get_posts",
"arguments": {
"url": "https://www.facebook.com/nike",
"limit": 10
}
}