title: Posting an image to fan page album using Facebook API
body: <p>I have created an Facebook App. I need user to be able to post images to my facebook page's album through that App and for that I need to grab Access Token of the page. I can only get access token when I am logged in as an administrator of the page but if  I log in with other account I don't get the access token of the page (Even though I liked the page and installed the App). Code is below</p>
  
  <pre><code>$fanpage = 'XXXXXXXXXXXXX';
  
  $pages_arr = array(
  'access_token'=&gt;$access_token,
  'fields'=&gt;'access_token' 
  );
  
  $page_token = $facebook-&gt;api('/'.$fanpage, 'get', $pages_arr);
  $fanpage_token = $page_token['access_token'];
  
  **//When logged in as admin of the page I get the token but I don't get the token if I am not //page admin**
  
  echo $fanpage_token;
  
  $file = "@".realpath("test.jpg");  
  $args = array(
      'message' =&gt; 'test',
      'image' =&gt; $file,
      'aid' =&gt; $album_id,
      'no_story' =&gt; 1, 
      'access_token' =&gt; $fanpage_token  // note, we use the page token here
  );
  
  $photo = $facebook-&gt;api("/$album_id/photos", 'post', $args);
  if( is_array( $photo ) &amp;&amp; ! empty( $photo['id'] ) )
      echo 'Photo uploaded. Check it on Graph API Explorer. ID: ' . $photo['id'];
  </code></pre>
  
  <p>I asking for following permissions on App install</p>
  
  <pre><code>manage_notifications,user_photos,photo_upload,publish_stream,friends_photos,manage_pages
  </code></pre>