Search code examples
facebookpostvisible

Posting on facebook page - i am the only one who sees the post


I searched all web long for this problem but nothing seems to fix it.

I am simply writing a post to a facebook page, the post is visibile on the page but only by myself and no from other admins or users.

How can it be possible?

I am using this function (also i'm pretty sure that the whole code is working as the post is on the page!):

$postResult = $facebook->api($post_url, 'post', $msg_body );

First i was guessing that was a privacy problem, but the page doesn't have that kind of parameter.

Whole code is:

post_url = '/'.$page_id.'/feed';

$page_info = $facebook->api("/$page_id?fields=access_token");

//die(print_r($page_info));
//posts message on page statues 
$msg_body = array(
'access_token' => $page_info['access_token'],

'message' => "test"
);

if ($fbuser) {
  try {
        $postResult = $facebook->api($post_url, 'post', $msg_body );
    } catch (FacebookApiException $e) {
    echo $e->getMessage();
  }
} 

@------------@ EDIT @------------@

I still have the same problem, also, i checked a feed "manually" posted and a feed from my script, and the fields are exactly the same... that's insane.

@------------@ EDIT II: @------------@

I tried with a curl, nothing seems to work :/


Solution

  • Problem has been solved.

    As an idiot, SandBox mode was activated (i didn't know that eveything done by the app was binded by the SandBox).