title: How to get all pages from facebook account
body: <p>I have tried to get all facebook pages list. But I got an error. </p>
  
  <p>Error is :  request is not defined</p>
  
  <p>Code :</p>
  
  <pre><code>var url = 'https://graph.facebook.com/me/accounts';
  var accessToken = req.user.facebookAccessToken;
      var params = {
          access_token: accessToken,
      };
      request.get({  url: url, qs: params}, function(err, resp, pages) {
         // console.log(resp);
          pages = JSON.parse(pages);
  
      })
  </code></pre>