Get posts from a public Facebook group by group ID. Returns post content, engagement metrics (reactions, comments, shares), and author data. Supports pagination and sorting.
curl "https://apidirect.io/v1/facebook/group/posts?group_id=457987654321" \
-H "X-API-Key: YOUR_API_KEY"
{
"posts": [
{
"post_id": "457987654321_1122334455",
"url": "https://www.facebook.com/groups/python/posts/1122334455",
"message": "Just released my new Python package for data validation. Check it out!",
"sentiment": {
"emotions": {
"joy": 40,
"trust": 55,
"fear": 0,
"surprise": 10,
"sadness": 0,
"disgust": 0,
"anger": 0,
"anticipation": 30
},
"dominant_emotion": "trust",
"emotional_intensity": 5,
"polarity": "positive"
},
"date": "2026-03-05 12:45:00",
"timestamp": 1772793900,
"author_name": "Alex Chen",
"author_id": "100098765432",
"author_url": "https://www.facebook.com/profile.php?id=100098765432",
"author_profile_picture": "https://scontent.xx.fbcdn.net/v/t39.30808-1/...",
"comments_count": 45,
"reactions_count": 230,
"reshare_count": 18,
"reactions": {"like": 150, "love": 50, "wow": 20, "haha": 5, "sad": 0, "angry": 5},
"image_url": null,
"video": null,
"external_url": "https://pypi.org/project/example-package"
}
],
"count": 1,
"pages": 1
}