Facebook Page photos API
The latest photos on a Facebook Page’s Photos tab: full-size image, thumbnail, link and Facebook’s description of each image.
GET /v1/facebook/pages/{page}/photosBeta1 credit per callRefunded on failureimport os, requests
res = requests.get(
"https://api.groundsocial.dev/v1/facebook/pages/nike/photos",
headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()Response
200 · 1 credit{ "photos": [ { "id": "1095811278580247", "url": "https://www.facebook.com/photo.php?fbid=1095811278580247&set=pb.100044541544829.-2207520000&type=3", "accessibility_caption": "No photo description available.", "viewer_image": { "uri": "https://scontent.ffxe1-1.fna.fbcdn.net/v/t39.30808-6/471313661_18515827156020081_2460706748949541958_n.jpg?stp=dst-jpg_t…", "width": 1440, "height": 1800 }, "thumbnail": "https://scontent.ffxe1-1.fna.fbcdn.net/v/t39.30808-6/471313661_18515827156020081_2460706748949541958_n.jpg?stp=c0.119.14…", "__typename": "Photo", "immersive_photo_encodings": [], "photo_cix_screen": null }, { "id": "1095811281913580", "url": "https://www.facebook.com/photo.php?fbid=1095811281913580&set=pb.100044541544829.-2207520000&type=3", "accessibility_caption": "No photo description available.", "viewer_image": { "uri": "https://scontent.ffxe1-2.fna.fbcdn.net/v/t39.30808-6/471224461_18515827027020081_2730394367175734882_n.jpg?stp=dst-jpg_t…", "width": 1440, "height": 1800 }, "thumbnail": "https://scontent.ffxe1-2.fna.fbcdn.net/v/t39.30808-6/471224461_18515827027020081_2730394367175734882_n.jpg?stp=c0.119.14…", "__typename": "Photo", "immersive_photo_encodings": [], "photo_cix_screen": null }, "… 6 more" ]}Parameters
| Name | Type | Description |
|---|---|---|
pagepath · required | string | Page URL, vanity name or numeric id. Example: nike. |
Response fields
200 with a FacebookPagePhotos, in Facebook’s own JSON.
| Field | Type | Description |
|---|---|---|
photos | FacebookPagePhoto[] |
Status codes
| Status | Meaning |
|---|---|
200 | The Page’s photos. |
400 | Invalid input. Nothing was charged. |
401 | Missing or invalid API key. |
402 | Not enough credits, a spend cap was reached, or payment is required. |
403 | The target is private, or the account is suspended. |
404 | The ad, Page or advertiser is not in the Meta Ad Library. |
429 | Too many requests. Wait for Retry-After seconds. |
503 | Facebook is temporarily unavailable. Retryable; nothing was charged. |
Every error has code, message, hint and retryable. All error codes
Facebook is a trademark of Meta Platforms, Inc. We are not affiliated with or endorsed by Meta.