How can I test Direct Connect \ Social Login with localhost

Hi.
How can I test direct connect on localhost?
I added localhost to white list but when I call the url with localhost as callback nothing happened, while my production site works fine. how can I implement direct connect on DEV (localhost).
I'm not using any plugins and I'm implementing server with nodejs.
Thanks

Best Answer

  • Answer ✓
    Here's how I start a new login with Javascript for the user. It works on production as it does on localhost, as long as your whitelist is setup correctly. You'll want to change it to meet your needs, like what the callback_uri endpoint should be (my app accepts the oneall tokens on any page, so I just callback to the homepage).
    var provider = 'facebook'; // change as needed var url = 'https://asocialstrategy.api.oneall.com/socialize/connect/direct/' + provider + '/?callback_uri=' + encodeURIComponent(document.location.protocol + "//" + document.location.host + "/") + '&service=social_login';

Answers

Welcome!

Please sign in to your OneAll account to ask a new question or to contribute to the discussions.

Please click on the link below to connect to the forum with your OneAll account.