Skip to content

Commit

Permalink
Update ngconnectauthfacebook.php
Browse files Browse the repository at this point in the history
Facebook does't give us anymore fields first_name, last_name and email by default, these fields are required to create or update the user.
  • Loading branch information
Vincent Guyard committed Mar 16, 2017
1 parent 93a5a4f commit 358469d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/ngconnectauthfacebook.php
Expand Up @@ -4,7 +4,7 @@ class ngConnectAuthFacebook implements INGConnectAuthInterface
{
const AUTH_URI = 'https://www.facebook.com/dialog/oauth?display=%display%&client_id=%app_id%&redirect_uri=%site_url%&scope=%permissions%&state=%state%';
const TOKEN_URI = 'https://graph.facebook.com/oauth/access_token?client_id=%app_id%&redirect_uri=%site_url%&client_secret=%app_secret%&code=%code%';
const GRAPH_URI = 'https://graph.facebook.com/me?%access_token%';
const GRAPH_URI = 'https://graph.facebook.com/me?fields=id,name,first_name,last_name,email&%access_token%';
const PICTURE_URI = 'http://graph.facebook.com/%user_id%/picture';
const CALLBACK_URI_PART = '/ngconnect/callback/facebook';

Expand Down

0 comments on commit 358469d

Please sign in to comment.