Topic-icon Regester user by ajax/curl request

Active Subscriptions:

None
8 years 1 month ago #57505 by tekdinet
I don't want to use social login buttons, to get logged in.
I already have fetched facebooks access_token using javascript, I want to register that user by passing the same token_id to jfbconnect component through ajax or curl.
Please let me know how to achieve that.


Please reply ASAP
The topic has been locked.
Support Specialist
8 years 1 month ago #57515 by alzander
We'd need a lot more details about what you're doing. How is the user authenticating if they aren't using JFBConnect? In general, we don't have any method silently authenticate them with just a token. We already have a Javascript call that can try to fetch their auth token and, if so, redirect them through the login process. That will reload the page though since that's what needs to happen when a user logs in.

Bottom line though, if you already know the user is logged in and the token is set properly in the Facebook Javascript library, you can call the jfbc.login.provider('facebook') call, which is what JFBConnect uses to authenticate all users.

I hope that helps explain,
Alex
The topic has been locked.