What is "callback_url" exacty?Is it redirecting page's url or it is the path of callback script?

I have a script in my server which is written with node js where I used oneall node sdk api's to get user token etc. But when I try to send my script in set_callback_uri Javascript API. It is giving me "405 method not allowed error " on the screen after I logged in using facebook for example. So my question is , what is exactly callback url that is referring in here?

_oneall.push(['social_login', 'set_callback_uri', 'https://domainname/callback.js']);

Any help appreciated, thanks!


  • Claude_SchlesserClaude_SchlesserAdministratorOneAll Team
    edited October 2017

    please have a look here:
    After having clicked on a social network icon the user is forwarded to the login page of that social network. Upon successful authentication the user is then redirected back to the callback_uri that you have specified before.

    The callback_uri is a link to a script hosted your server. The purpose of that script is to read the POST (or GET if you use Direct Connect) value connection_token and to fetch the user's social network profile data by sending a HTTP request with that token to the OneAll API
    To catch the result using JavaScript you need to use an event:
  • An example on catching this request on the other side would be super helpful. Personally I'm trying to catch it with an app.post('/connection_token'), but it's simply not getting called. I just get rerouted.
  • Claude_SchlesserClaude_SchlesserAdministratorOneAll Team
    The callback URI can be any URL that you can enter in your browser. Our API redirects the user to this URL (there you can then extract the user's details and do you processing login/registration ...)

    So it needs to be a fully qualified URL.
Sign In or Register to comment.