Diaa Saada
Diaa Saada

Reputation: 1056

Facebook PHP SDK: (#200) Subject does not have permission to post videos on this target

I am using Facebook-PHP SDK to upload videos to a page using user access token and Facebook app that has the mange_pages and publish_pages permissions.

And it worked fine until yesterday. suddenly it stopped with this error message:

(#200) Subject does not have permission to post videos on this target

I checked the user Apps from the Facebook profile and the app exists with the right access

Manage your Pages
Show a list of the Pages you manage
Show a list of the Pages you manage
Publish as Pages you manage

tried to refresh the long-live access token but I still have the same issue

what I should do/debug/check ??

Upvotes: 2

Views: 1896

Answers (2)

JueLance
JueLance

Reputation: 51

I got this error because I put request in a wrong place.

Base on Facebook doc: https://developers.facebook.com/docs/video-api/guides/reels-publishing

In Step 2: Upload the Video, My scenario is upload a Hosted File, I put file_url in http request body, then I got this error. The correct place should put file_url in http request header.

You need check your request.

Hope this can help you and others!

Upvotes: 0

Gardonyi Peter
Gardonyi Peter

Reputation: 21

You should try to set 2 factor auth for your FaceBook account.

Upvotes: 1

Related Questions