title: Facebook Permission not being granted with request
body: <p>Registering users in to the application via Facebook with all the permission. But Permissions not being requested during enrollment.</p>
  
  <p>Here will be steps followed</p>
  
  <ol>
  <li><p>Added java script call to Facebook login window with permissions.</p>
  
  <pre><code>(function($) {
       window.fbAsyncInit = function() {
          FB.init({
            appId: '#{settings.facebookAppId}',
            status: true,
            cookie: true,
            xfbml: true,
            oauth: true
          });
        };
  
  var fbPermissions ="user_about_me,user_activities,user_birthday,user_checkins,user_education_history,user_events,user_groups,user_hometown,user_interests,user_likes,user_location,user_notes,user_online_presence,user_photo_video_tags,user_photos,user_questions,user_relationships,user_relationship_details,user_religion_politics,user_status,user_videos,user_website,user_work_history,email,read_friendlists,read_mailbox,read_requests,read_stream,xmpp_login,manage_friendlists,manage_notifications,user_online_presence,friends_online_presence,publish_stream";
  
  $(document).on('click', '.linkAccount', function(){
          FB.login(function(res) {
              var authToken =res.authResponse.accessToken;
              var auth = res.authResponse;
          }, { scope: fbPermissions });
      });
  </code></pre>
  
  <ol start="2">
  <li>Facebook login window shown</li>
  <li>User will be asked for the permission as "will receive the following info: your public profile and email address".</li>
  <li>Here Permission asked only for email address, and profile.</li>
  <li><p>There no permission asked for other scope like read_mailbox ...Due to this we getting the error while calling the FQL query.</p>
  
  <p>SELECT thread_id, body, viewer_id, message_id,source, author_id,     created_time FROM message WHERE thread_id IN (SELECT thread_id FROM thread WHERE folder_id = 1) AND created_time &lt; " + daybeforenow + " ORDER BY created_time DESC"</p></li>
  <li><p>Getting the error as 
  {"Requires extended permission: read_mailbox","type":"OAuthException","code":298 }</p></li>
  <li><p>In Users facebook app/settings, approved list showing only for email address, profile.</p></li>
  </ol></li>
  </ol>
  
  <p>Trying to fix this issue.no luck. Community help will really appreciated.</p>