title: How to request scope/permission from Facebook during user registration
body: <p>I am using the information on <a href="http://developers.facebook.com/docs/plugins/registration/" rel="nofollow">http://developers.facebook.com/docs/plugins/registration/</a> to register, and login users with Facebook. How would I request this permission? I've tried to use</p>
  
  <pre><code> &amp;scope=permission,permission,etc,etc
  </code></pre>
  
  <p>before fields, and then after fields. Regardless, the system still says </p>
  
  <pre><code>The user hasn't authorized the application to perform this action
  </code></pre>
  
  <p>Any help on this issue would be much appreciated!</p>
  
  <hr>
  
  <p>After registration, I try as follows and it still spit out the same error:</p>
  
  <pre><code>        if ($_REQUEST) {
              require 'facebook.php';
              $facebook = new Facebook(array('appId'  =&gt; APP_ID,'secret' =&gt; APP_SECRET));
              $user = $facebook-&gt;getUser();
              if ($user) {
                  $loginUrl   = $facebook-&gt;getLoginUrl(array('scope' =&gt; 'email,publish_stream'));
                  $statusUpdate = $facebook-&gt;api('/me/feed', 'post', array('message'=&gt; 'Testing posting to may wall', 'cb' =&gt; ''));
              } else {
                $loginUrl   = $facebook-&gt;getLoginUrl(
                      array('scope' =&gt; 'email,publish_stream','redirect_uri'  =&gt; REDIRECT_URL )
                  );
              }
          }
  </code></pre>