I created a facebook login button from here:
http://developers.facebook.com/docs/reference/plugins/login/
and I have the following login button:
<div class="fb-login-button" scope="email" data-show-faces="true" data-max-rows="3">Login with Facebook</div>
So, when the user accept the permissions, how can I get the user information (in this case the email)? (Using javazcript in client-side)
Similar to:
Get user’s Facebook UID with Javascript
but you will need to take this a little further and get their email by looking for
emailin the response object.However, your app will have to request this permission from your users, see Facebook documentation on permissions here: https://developers.facebook.com/docs/authentication/permissions/