The Get Started with the Facebook Video API from Meta guide shows you how to obtain a permissions, a Page access token, and a Page ID using the Graph API Explorer.
You will need:
CREATE_CONTENT
task
The graph-video.facebook.com
host for video uploads has been deprecated. Use the graph.facebook.com
host for API requests when uploading videos to Meta servers.
In this section you will beusing the Graph API Explorer to get an access token for your Page with the necessary permissions
pages_manage_engagement
pages_read_user_content
pages_show_list
You now have a User access token that you can use to make API requests. You can copy and paste this token to test your app and click the i icon to view details about this token including permissions and expiry.
GET /me/accounts
endpoint. me
represents the ID for the User or Page that requested the access token, in this query the ID is your User ID.
{ "data": [ { "access_token": "EBACf...", //Copy your Page Access Token "category": "Media", "category_list": [ { "id": "163003840417682", "name": "Media" } ], "name": "Metricsaurus", "id": "1755847768034402", //Copy your Page ID "tasks": [ "ANALYZE", "ADVERTISE", "MODERATE", "CREATE_CONTENT", "MANAGE" ] } ], "paging": { "cursors": { "before": "MTc1NTg0Nzc2ODAzNDQwMgZDZD", "after": "MTc1NTg0Nzc2ODAzNDQwMgZDZD" } } }
me
with your Page ID.