title: FacebookGraphAPIError: (#100) Tried accessing nonexisting field (user_photos) on node type (User)
body: <p>I'm using passport.js for Facebook authentication and I started to get this error recently. Full error message looks like this:</p>
  
  <pre><code>FacebookGraphAPIError: (#100) Tried accessing nonexisting field (user_photos) on node type 
  (User) at D:\app\node_modules\passport-facebook\lib\strategy.js:167:21 at passBackControl 
  (D:\app\node_modules\passport-facebook\node_modules\passport-oauth2\node_modules\oauth\lib\oauth2.js:124:9) 
  at IncomingMessage.&lt;anonymous&gt; (D:\app\node_modules\passport-facebook\node_modules\passport-oauth2\node_modules\oauth\lib\oauth2.js:143:7) 
  at IncomingMessage.emit (events.js:129:20) at _stream_readable.js:908:16 at 
  process._tickCallback (node.js:355:11)
  </code></pre>
  
  <p>I tried different approaches to set permissions scope. Initially I declared it in </p>
  
  <pre><code>passport.use(new FacebookStrategy({
      profileFields     : ['user_photos', 'user_friends'],
  }
  </code></pre>
  
  <p>Then I moved it to</p>
  
  <pre><code>app.get('/auth/facebook', passport.authenticate('facebook', 
  { scope : ['email, public_profile, user_photos, user_friends'] }));
  </code></pre>
  
  <p>And it still causes the same error, as well as user_friends if I remove user_photos. Any ideas on what am I doing wrong? Core of my authentication script was inspired by this tutorial <a href="https://scotch.io/tutorials/easy-node-authentication-facebook" rel="noreferrer">https://scotch.io/tutorials/easy-node-authentication-facebook</a></p>