I am encountering an issue with uploading video stories to a Facebook Page using the Graph API, and I'm seeking assistance to resolve it. Below, I have outlined the problem, steps I've taken, and the relevant details of my setup.
Issue Description: I am successfully able to initialize a video upload session for video stories and receive a video_id and upload_url. However, when I attempt to upload a hosted video file to the provided upload_url, I consistently receive a 400 Bad Request error with a NotAuthorizedError message, stating "User not authorized to perform this request."
Verified that the access token has the necessary permissions and is valid. Checked that the file_url is publicly accessible and correctly formatted. Attempted different formats for the upload request, including sending file_url as JSON data and in headers. Reviewed Facebook Graph API documentation for any missing steps or requirements. Despite these efforts, the issue persists. Could you please provide guidance on what might be causing this NotAuthorizedError and how to resolve it? Any additional insights or steps I should follow would be greatly appreciated.
Also gave all necessary permissions needed for the sharing on video-stories.
it should also be noted that I can easily share Image Story and the problem is only with the Video Stories
Thank you for your assistance.