POST
/
meta
/
get_fb_page_media
Get Facebook Page Media
curl --request POST \
  --url https://public.plai.io/meta/get_fb_page_media \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "userId": "<string>",
  "type": "<string>",
  "pagination": "<string>"
}'
{
    "success":true,
    "results":
        {
            "success":true,
            "media":[
                {
                    "id":"2074273929752253",
                    "full_picture": "https://scontent-ord5-2.xx.fbcdn.net/v/t45.1600-4/458397097_120212188508890153_5643706261073051043_n.jpg?_nc_cat=105&ccb=1-7&_nc_sid=890911&_nc_eui2=AeEb31a9FMRMAR99chReYC"
                }
            ]
        }
}

Request Body

userId
string
required
User ID, If not already created, make a user on create user page first. If already created, retrieve the user ID from get profile page.
type
string
required
Media Type, Values: IMAGE or VIDEO
pagination
string
default:""
If the number of results exceeds the page limit, the response will include pagination links (next and previous) to help you navigate through the result set

Response

success
boolean
Indicates that the HTTP response was successful (status code 200 OK).
results
object
{
    "success":true,
    "results":
        {
            "success":true,
            "media":[
                {
                    "id":"2074273929752253",
                    "full_picture": "https://scontent-ord5-2.xx.fbcdn.net/v/t45.1600-4/458397097_120212188508890153_5643706261073051043_n.jpg?_nc_cat=105&ccb=1-7&_nc_sid=890911&_nc_eui2=AeEb31a9FMRMAR99chReYC"
                }
            ]
        }
}