How can I create a call back url in Ruby?

My application consumes an external API and I want to create a callback url for it?
How can I go about this?

In order to do so, the external API has to support callback urls.

I’ve done this with OAuth where Facebook supported calling back after performing Facebook authentication.

It’s as easy as building a Rails custom route for the callback URL and writing code to anticipate the parameters that the external API will pass you (e.g. Facebook passes you the name/email of authenticated user)

I hope my general answer helped. If you have something more specific you’d like to ask about, shoot.

Can i set a callback url which external to my rails app domain?

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs