I\'m building a Rails API and have successfully built a way for a user to authenticate using Omniauth Identity.
We simply post to auth/identity/callback from the client,
To communication with facebook api. I recommend use 'omniauth-facebook' gem. You can clone this example to understand more: https://github.com/ralphos/omniauth-facebook-example