title: Can I get user email using Instagram API login?
body: <p>I tried to use Instagram oauth API login but I can't get User email where as I can get profile picture, user url, comments and all.</p>
  
  <p>So can anyone tell me if there is any option to get user email?</p>
  
  <p>Here is snippet for you:</p>
  
  <pre><code>print_r($result-&gt;data); exit;
      // display all user likes
      foreach ($result-&gt;data as $media) {
          $content = "&lt;li&gt;";
  
          // output media
          if ($media-&gt;type === 'video') {
              // video
              $poster = $media-&gt;images-&gt;low_resolution-&gt;url;
              $source = $media-&gt;videos-&gt;standard_resolution-&gt;url;
              $content .= "&lt;video class=\"media video-js vjs-default-skin\" width=\"250\" height=\"250\" poster=\"{$poster}\"
                         data-setup='{\"controls\":true, \"preload\": \"auto\"}'&gt;
                           &lt;source src=\"{$source}\" type=\"video/mp4\" /&gt;
                         &lt;/video&gt;";
          } else {
              // image
              $image = $media-&gt;images-&gt;low_resolution-&gt;url;
              $content .= "&lt;img class=\"media\" src=\"{$image}\"/&gt;";
          }
  
          // create meta section
          $avatar = $media-&gt;user-&gt;profile_picture;
          $username = $media-&gt;user-&gt;username;
          $comment = $media-&gt;caption-&gt;text;
  
          $content .= "&lt;div class=\"content\"&gt;
                         &lt;div class=\"avatar\" style=\"background-image: url({$avatar})\"&gt;&lt;/div&gt;
                         &lt;p&gt;{$username}&lt;/p&gt;
                         &lt;div class=\"comment\"&gt;{$comment}&lt;/div&gt;
                       &lt;/div&gt;";
  </code></pre>
  
  <p>Here I can get avatar,username and comment. But I need email to be fetched.</p>
  
  <p>Thanks in advance</p>