title: FB.api('/me') always giving error code:2500 in phonegap android
body: <p>I am using facebook plugin to login and logout a user, which are working fine. The problem is when I request for the logged in user details using the function FB.api('/me'), it always gives the following error:</p>
  
  <pre><code>      {"message":"An active access token must be used to query information about the current user.","type":"OAuthException","code":2500} 
  </code></pre>
  
  <p>I used the debug mode to check PluginResult(pr) and JSONObject of the response. JSONObject contains the user information, which I required, I dont get where I am doing wrong.</p>
  
  <pre><code>  Plz help......
  </code></pre>
  
  <p>MY CODE:</p>
  
  <pre><code>           function login() {
              FB.login(function(response) {
                 if (response.session) {
                   console.log('Welcome!  Fetching your information.... ');
                   FB.api('/me', function(response) {
                     console.log('Good to see you, ' + JSON.stringify(response) + '.');
                   });
                 } else {
                   console.log('User cancelled login or did not fully authorize.');
                 }
               },{scope: 'email,user_likes'});
          }
  
         function logout() {
              FB.logout(function(response) {
                             console.log(localStorage.getItem("user_fb_log_status"));
                             localStorage.setItem("user_fb_log_status","LOGGED_OUT");
  
                        alert('logged out');
                        });
          }
  
  The above code is working fine to login and logout the user. Below is the code i used to get the user details,
  
          function me() {
                  FB.api('/me', { fields: 'id, name, picture' },  function(response) {
                     if (response.error) {
                     alert(JSON.stringify(response.error));
                     } else {
                     var data = document.getElementById('data');
                     fdata=response.data;
                     console.log("fdata: "+fdata);
                     response.data.forEach(function(item) {
                                           var d = document.createElement('div');
                                           d.innerHTML = "&lt;img src="+item.picture+"/&gt;"+item.name;
                                           data.appendChild(d);
                                           });
                     }
                     });
  
              }
  </code></pre>