title: Facebook PHP API - Posts to page only showing to me, not the public
body: <p>I've created a Facebook App using the latest version of the PHP SDK (version 5) which publishes posts to my Facebook page when ran.</p>
  
  <p>This is working...however the posts are going onto the page as 'private', so only I can see the posts when logged in to my personal Facebook page. the public cannot see them. </p>
  
  <p>Does anyone know why this may be? Am I right in assuming I need to 'submit the App to Facebook for review' before it can send public posts to my page?</p>
  
  <p>Here's my code below:</p>
  
  <pre><code>define('FACEBOOK_SDK_V4_SRC_DIR', __DIR__.'/src/facebook-sdk-v5/');
  require_once(__DIR__.'/src/facebook-sdk-v5/autoload.php');
  
  //Set your Facebook API settings
  $fb = new Facebook\Facebook([
      'app_id' =&gt; 'apptoken',
      'app_secret' =&gt; 'appsecrettoken',
      'default_graph_version' =&gt; 'v2.2',
  ]);
  
  
  //Post property to Facebook
  $linkData = [
      'link' =&gt; 'http://www.google.co.uk',
      'message' =&gt; 'Test message'
  ];
  
  try {
  
      $response = $fb-&gt;post('/me/feed', $linkData, 'thepageaccesstokenhere');
  
  } catch(Facebook\Exceptions\FacebookResponseException $e) {
  
      echo 'Graph returned an error: '.$e-&gt;getMessage();
      exit;
  
  } catch(Facebook\Exceptions\FacebookSDKException $e) {
  
      echo 'Facebook SDK returned an error: '.$e-&gt;getMessage();
      exit;
  
  }
  
  $graphNode = $response-&gt;getGraphNode();
  </code></pre>