johnef_sh's avatar

Integrating Facebook to get the client email address

Hi can anybody help me on this? I going to make voting system which the user will select 3 items and than click on vote, when he clicks on voting button I need to get his email address from facebook.

how can I go with this

thanks

0 likes
4 replies
Snapey's avatar

why would facebook give you their email address?

1 like
johnef_sh's avatar

@Snapey I need each person to vote once so I need to check by email if he voted before or not, so instead of asking him to write his email I want to get the email from fb of course after he confirm. thanks

jampot5000's avatar

You can use the email scope when using Facebook OAuth to retrieve the email address, however, it does state that an email address may not always be returned.

Is it not possible for you to store the user's facebook id instead? If you are allowing Facebook or email logins, they would be able to vote twice but then again they would if they had multiple email addresses.

Please or to participate in this conversation.