title: How to get publish_stream permissions for facebook app?
body: <p>I have an app which has been running for a while which has only requested some account information for login purposes. Now I want to use it to publish to the stream. I have added publish_stream to the req_perms but, it still doesn't ask for that permission.</p>
  
  <p>Am I missing something?</p>
  
  <pre><code>&lt;?php
  # CREATE FACEBOOK BUTTON
      $facebook = new Facebook(array(
          'appId'  =&gt; FACEBOOKAPPID,
          'secret' =&gt; FACEBOOKSECRET,
          'cookie' =&gt; false,
      ));
      $fb_session = $facebook-&gt;getUser();
      $fb_me = null;
      // Session based API call.
      if ($fb_session) {
          try {
              $fb_uid = $fb_session;
              $fb_me = $facebook-&gt;api('/me');
              $fb_me['photo'] = 'http://graph.facebook.com/'.$fb_uid.'/picture?type=large';
              $_SESSION['login_api'] = 1;
              $_SESSION['login_api_details'] = $fb_me;
              $_SESSION['login_api_user_id'] = $fb_uid;
  
              # WE ARE GOOD TO GO, LETS GET THE ACCESS TOKEN
              $_SESSION['access_token'] = $facebook-&gt;getAccessToken();
  
  
              #header_redirect(SITEURL.'/login');         
  
          } catch (FacebookApiException $e) {
              error_log($e);
          }
      }
      else{
          # LOGIN URL FOR FACE BOOK &amp; request extra stuff
          $fb_login_url = $facebook-&gt;getLoginUrl(array('req_perms'=&gt;'publish_stream,email,user_about_me,user_birthday,user_website'));
          header_redirect($fb_login_url);
      }
  ?&gt;
  </code></pre>