How Disqus facebook login dont have the - 'dont give the site my email' option - facebook

when i try to use facebook login in my website and i asked for email adress when the user login facebook ask them something like: do you want to give them your email? yes no.
but when i check Disqus login with facebook, facebook dont give me the option to login but dont give them the email its just say:
DISQUS will receive the following info: your public profile, friend list and email address.
how do i do the same in my website? because right now what i have is that when someone log in with facebook and refuse to give me his mail i just ask them for their mail

so after few days i found it.. by using facebook js sdk and asking for email the user dont have option to refuse

Related

Making it mendatory to get email with facebook oAuth with Socialite

I am trying to use facebook oAuth for my users to login/register to my website. For this, i require user's email address
Facebook oAuth dialog has option to provide / not provide email but even if the user's doesn't provide their email, I cannot re-request authorization from facebook again as it considers the user as logged in and simply redirects to call back url.
I am using Laravel and Socialite package.
Any solutions??
Socialite allows you to get user information directly after the successful authorization by using
$user = Socialite::driver('facebook')->user();
$user->email;
I would expect $user->email to contain the users email address if he accepted to share her with the app and to be empty if the user denied the email address sharing.
And if $user->email is empty throw an error and ask the user to re-authorize. If it's not working you could try to de-authroize the user, a guide can be found here.
A convenient way to avoid any issues is to display a warning that the user should allow email sharing if he wants to log in with Facebook.

Adding Facebook , Gmail Login to Own Website . Is it free?

I want to add facebook and gmail login for my application. Does facebook and gmail charge anything for providing login?
No, it is for "free". They however track your users as form of charge.

Can I used passport.js to login to Facebook from an app?

I and a friend are developing an app and would like to use Facebook as a way of users having their own accounts without us having to ask them to store passwords or make users for security and ease of use.
Passport.js has a facebook plugin but it talks about a redirect URL so my question is: is it actually possible to just send information like email address and password to facebook for authorisation and return the users profile without actually redirecting the user to a facebook login page.
I don't see how i could redirect the user to a facebook login while inside my app and also what on earth would i put as the callback URL? Am i just trying to use passport-facebook in the wrong way?
is it actually possible to just send information like email address and password to facebook for authorisation
No. Users are strongly discouraged from giving this information to any 3rd party app, and you are not allowed to ask users for them.
Login with username/email and password happens on Facebook, not in your app. You will get feedback from the login endpoint then that they logged in successfully.

how to get the name of visitor on my website if he is logged into hi facebook account without connecting my website to his facebook profile?

how to get the name of visitor on my website if he is logged into his facebook account without connecting my website to his facebook profile?
I want to show in header that You are logged in to facebook account as fbusername how can I do this? Plz answer
You want to show his Facebook name on your site without having your site linked to Facebook ? Not possible, where will you get this data from ?

Janrain engage doesnt work with facebook login

I installed the janrain engage plugin in my magento site,configured it and its working fine with live,yahoo and google but when it comes to fb it gives me an error. the first time someone logs in it works perfect but when they logout and try to relogin with the same facebook account they get redirected to mysite/janrain-engage/rpx/duplicate/ and that shows an error message (There is already an account with this email address. If you are sure that it is your email address, click here to get your password and access your account.) If they use their email and the password they get by email they can login so i think i have configured smth wrong in my fb app. Anyone can give me a full guide on how to configure the fb-app properly or if there's smth I have to change in the janrain admin panel?