title: PHP How to get event attendings email using Graph API?
body: <p>I'm very new in FB Graph and I want to get the attendings list of an event with, if possible, the email of each one.
  Now, after some work:</p>
  
  <p>In the login script:</p>
  
  <p>I set the "email" permission</p>
  
  <pre><code>$permissions = ['email']; // optional
  $loginUrl = $helper-&gt;getLoginUrl('http://xxxx', $permissions);
  </code></pre>
  
  <p>In the callback:</p>
  
  <p>I get attending list (but Name and Id only)</p>
  
  <p>For each attending I call </p>
  
  <pre><code>$request = $fb-&gt;request('GET', '/'. $attending['id'].'?fields=id,name,email');
  $response = $fb-&gt;getClient()-&gt;sendRequest($request);
  $graphObject = $response-&gt;getGraphObject();
  $email = $graphObject-&gt;getProperty('email');  // This is not getting any thing
  </code></pre>
  
  <p>But cannot get the email addresses.</p>
  
  <p>Doing some tests I replaced the $attending['id'] withe 'me'_ </p>
  
  <pre><code>$request = $fb-&gt;request('GET', '/me?fields=id,name,email');
  </code></pre>
  
  <p>and I got my email address.</p>
  
  <p>Where I'm wrong?</p>
  
  <p>Thanks for your answer.</p>
  
  <p>Marcello</p>