Get Info from LoginWithFacebook method without actually logging in

Hi Guys, I am new to react and meteor. I am using the accounts-facebook package and its working great.

The problem i am facing is that the users on my site login using password. After logging in through password, I want to get their fb account info using the accounts-password package. But the problem is accounts-facebook package is automatically logging in the user through fb.

I just want the info returned without logging in through the facebook. How can i do that?

1 Like

Ok, I think i found the solution.

I used the Accounts.validateLoginAttempt method to check for the login method and return false if the the login method is facebook after storing the info on the db.

Does anyone have any other solutions to this?