Samuel Todosiciuc
Samuel Todosiciuc

Reputation: 31

Videos uploaded with facebook api are visible to me but not to others

Today i've uploaded some clips using Facebook video api and there is a problem. The problem is that videos uploaded on my page are visible to me but not to other people. Not even the other admins can't see them. Now the obvious answer would be "the privacy". But that's the thing, it's public. I don't know what i'm doing wrong

$attachment = array(
    'access_token' => $this->token,
    'name' => isset($story->name) ? $story->name : $story->title,
    'description' => $story->description,
    'source' => '@' . realpath($story->resource)
);
$result = $this->facebook->api($this->getUploadUrl($story->page, $story->type), 'post', $attachment);

It's all working fine. I'm not getting any errors. The result from this request would be somthing like

{"id":"693098840722877"}

Thank you!

Upvotes: 0

Views: 254

Answers (3)

jasska
jasska

Reputation: 1

For anyone else having the same problem, As Samuel Todosiciuc mentioned, check your App live status. I was going insane trying to figure out why public posts of programmatically uploaded videos were not showing for others.

I didn't find any sandbox setting per se, it was putting it live. Go to your App page > App review > "Make (your app) public?" > put it to live.

Upvotes: 0

Samuel Todosiciuc
Samuel Todosiciuc

Reputation: 31

Oh dear God. The application was in "sandbox" mode. So that's why other people could not see the posts

Upvotes: 0

Linda Lawton - DaImTo
Linda Lawton - DaImTo

Reputation: 117196

I think maybe you for got Privacy.

attachment = array(
    'access_token' => $this->token,
    'name' => isset($story->name) ? $story->name : $story->title,
    'description' => $story->description,
    'source' => '@' . realpath($story->resource),
    'privacy' => json_encode(array( 'value' => 'EVERYONE' ))
);

Upvotes: 1

Related Questions