Skip to content

Commit

Permalink
Add email field to /me API call
Browse files Browse the repository at this point in the history
  • Loading branch information
battaglia01 authored and linc committed Nov 22, 2015
1 parent 6273155 commit 5fac4d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/Facebook/class.facebook.plugin.php
Expand Up @@ -599,7 +599,7 @@ protected function getAccessToken($Code, $RedirectUri, $ThrowError = true) {
* @return mixed
*/
public function getProfile($AccessToken) {
$Url = "https://graph.facebook.com/me?access_token=$AccessToken";
$Url = "https://graph.facebook.com/me?access_token=$AccessToken&fields=name,id,email";
// $C = curl_init();
// curl_setopt($C, CURLOPT_RETURNTRANSFER, true);
// curl_setopt($C, CURLOPT_SSL_VERIFYPEER, false);
Expand Down

0 comments on commit 5fac4d6

Please sign in to comment.