Meta for Developers API
Access Meta's platform APIs including Facebook, Instagram, and WhatsApp Business APIs for managing pages, posts, advertising, and user data.
Quick start
Tools (7)
GETget-user-info
Returns the authenticated user's basic profile data including name, email, and ID. Use this to verify token validity and get user context. No side effects.
GET /me
GETlist-page-posts
Retrieves published posts from a Facebook page. Returns post content, engagement metrics, and metadata. Use for content analysis or social media monitoring. No side effects.
GET /{page-id}/posts
Parameters
page-id
|
string required |
limit
|
integer |
POSTcreate-page-post
Creates and publishes a new post to a Facebook page. DESTRUCTIVE OPERATION - This will publicly post content to the page. Returns the created post ID and details. Use for social media publishing and content distribution.
POST /{page-id}/posts
Parameters
page-id
|
string required |
message
|
string |
link
|
string |
published
|
boolean |
GETget-post-details
Returns comprehensive data about a Facebook post including content, engagement metrics, comments count, and metadata. Use for post analysis and performance tracking. No side effects.
GET /{post-id}
Parameters
post-id
|
string required |
GETget-post-comments
Retrieves comments and replies for a specific post. Returns comment text, author info, and timestamps. Use for community management and engagement analysis. No side effects.
GET /{post-id}/comments
Parameters
post-id
|
string required |
limit
|
integer |
GETlist-campaigns
Returns all advertising campaigns in an ad account with status, budget, and performance data. Use for campaign management and advertising analytics. No side effects.
GET /act_{ad-account-id}/campaigns
Parameters
ad-account-id
|
string required |
GETget-ad-insights
Returns detailed analytics data for advertising campaigns including impressions, clicks, conversions, and costs. Use for performance analysis and ROI tracking. No side effects.
GET /act_{ad-account-id}/insights
Parameters
ad-account-id
|
string required |
date_preset
|
string |
fields
|
string |