Forum
Welcome, Guest
Please Login to access forum.
FB none email login (1 viewing) 
Go to bottom
TOPIC: FB none email login
#6021
robust65
Fresh Boarder
Posts: 19
User Offline
FB none email login Karma: 0  
Hi,
We found there are some users who login FB with only cell phone number and without email address, and these user will be assigned the same account to my site.
Is there a way I could prompt user they must provide the email address in their FB to login my site?
Thanks in advance

Best regards
 
Logged Logged  
  The administrator has disabled public write access.
#6022
John Dagelmore
Admin
Posts: 3722
User Online Now
Re:FB none email login Karma: 79  
Hi,
that's normal and it can't be changed. It depends on the type of Facebook account and privacy settings of each FB user.
Not all FB users have public access to their email address, in such case it's auto generated to allow a Joomla login.

Best regards
 
Logged Logged  
  The administrator has disabled public write access.
#6023
robust65
Fresh Boarder
Posts: 19
User Offline
Re:FB none email login Karma: 0  
Thanks John.
Is there a programming interface after user authenticated by FB but before the Joomla account was created, I could redirect the user to a page for some necessary data for my site?


Best regards
 
Logged Logged  
  The administrator has disabled public write access.
#6024
John Dagelmore
Admin
Posts: 3722
User Online Now
Re:FB none email login Karma: 79  
Yes, but you need to customize the code of the Facebook API connector.

Instead of generating automatically a random email address, you should change the code to perform a redirection.

The file is: root/modules/mod_instantfblogin/socials/facebook.php

and the line where the email address is managed is the number 62:
$email = $fbUserProfileArray ['email'] ? $fbUserProfileArray ['email'] : $fbUserProfileArray ['id'] . '@facebook.com';

Best regards
 
Logged Logged  
  The administrator has disabled public write access.
Go to top