T
T
ttywizard2018-09-15 16:52:59
Facebook
ttywizard, 2018-09-15 16:52:59

Does Facebook video upload via API work in 2018?

Hello, I remember about a year ago or even more I was uploading videos to facebook through their Graph API (php SDK) and then everything was in order, the videos loaded without problems. Today I'm trying to do the same, according to the same instructions, but the error constantly occurs:

(#100) No permission to publish the video

Although I set the correct access rights, and in the end I even tried to make such a request through the Facebook Graph API Explorer and set all the access rights there that could be selected when receiving an access_token , but the result is the same. There are no more ideas yet, but it seems to me that Facebook just banned anyone from uploading videos, maybe they need some permission from FB?
ps the application on FB was created only today and is in the development status, respectively, can the problem be related to this?
pss I'm trying to publish a video on my page, respectively, in the code it looks like this:
$data = [
      'title' => $title,
      'description' => $description,
      'source' => $fb->videoToUpload($video),
    ];
    try {
      $response = $fb->post('/me/videos', $data, '{ТУТ МОЙ ТОКЕН}');
      print_r($response);
    } catch (Exception $e) {
      echo $e->getMessage();
    }

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question