title: Angular + Facebook JS SDK login: Not requesting my permissions
body: <p>FB.login() is not working. The FB Popup is not requesting the right permissions. I can clearly see, in the source code that there's a fn handler that uses the right parameters / parameters being set correctly. I'd like to understand why isn't this working ? </p>
  
  <p>This is the code I've got so far:</p>
  
  <p><a href="http://jsbin.com/IteY/1/" rel="nofollow noreferrer">http://jsbin.com/IteY/1/</a></p>
  
  <p>This is where I'm setting the permissions list:</p>
  
  <pre><code>facebook.login(function(response) {
      console.log(response);
  }, {scope: 'email,user_likes'});
  </code></pre>
  
  <p>in accordance with the docs ( <a href="https://developers.facebook.com/docs/reference/javascript/FB.login/" rel="nofollow noreferrer">https://developers.facebook.com/docs/reference/javascript/FB.login/</a> ) </p>
  
  <p>by doing console.log in the fn handler for login(), I get the fn function(response){ ... } and the {scope: 'email,user_likes'}</p>
  
  <p>I found some other users reporting the same issue using the FB SDK here in SO. I tried the tip to use "perms" instead of "scope", but I get:</p>
  
  <p>OAuth2 specification states that 'perms' should now be called 'scope'.  Please update. </p>
  
  <ul>
  <li><p>Not appearing to be the problem. This also shows that the param is being send there. Go wonder why's not working ?! I've cleaned cache too</p></li>
  <li><p>Originally I've reported this issue (<a href="https://stackoverflow.com/questions/18400769/angularjs-di-error-no-module-facebook-why-isnt-working">AngularJS: DI Error - No module: $facebook, why isn&#39;t working?</a>) that was solved. Now having access to the FB object I'm not able to get the right permissions from the user. I'm sure that this is an issue related with Facebook API and not the Angular module</p></li>
  </ul>
  
  <p>**** I've also tried to check the permissions by using .api like :</p>
  
  <pre><code>facebook.api('/me/permissions', function (response) {
      console.log(response);
  } );
  </code></pre>
  
  <p>console.log reports:</p>
  
  <p>Object {error: Object}</p>
  
  <p>***** Now I've tried to access through the graph using the access_token:</p>
  
  <p><a href="https://graph.facebook.com/me/permissions?access_token=XXXXXXXX" rel="nofollow noreferrer">https://graph.facebook.com/me/permissions?access_token=XXXXXXXX</a></p>
  
  <p>and I can see the right permissions, but the Facebook login popup never asked me about them ? <strong>Shouldn't it ?</strong></p>
  
  <pre><code>  {
       "data": [
          {
             "installed": 1,
             "basic_info": 1,
             "email": 1,
             "read_friendlists": 1,
             "user_likes": 1,
             "user_online_presence": 1,
             "user_friends": 1
          }
       ],
       "paging": {
          "next": "xxxxxxx"
       }
    }
  </code></pre>
  
  <p>I've now asked a different user, who I've added to my sandbox as an admin and he got the required permissions popup! So, I think is something to do, with my own username who had this permissions already set or something - even though I tried to delete the cache, etc!</p>
  
  <p>So, there's no issue to solve. Hope this is useful for someone else in the future! </p>
  
  <p>Any one experienced can take a look ?</p>
  
  <p>Thank you</p>