Rails: How to authenticate user on mobile native with Devise+Omni-facebook+Devise_token_auth after obtaining the access token
<p>How do I use facebook access token on Devise + Omniauth-facebook + Devise_token_auth? </p>

<p>Is there a way to hook the access token into the omniauth-facebook somehow and get the user signed up/logged in? Or any other solution is welcome.</p>

<p>I am able to obtain the access token from facebook graph API on my mobile side.</p>

<p>I've tried to place the access token on the callback url as such:
/omniauth/facebook/callback?code=ACCESS_TOKEN
but it simply returns
{"errors":["Use POST /sign_in to sign in. GET is not supported."]}</p>

<p>I have looked at:</p>

<p><a href="https://stackoverflow.com/questions/18995448/rails-api-authenticate-users-from-native-mobile-apps-using-username-password-or">Rails API: Authenticate users from native mobile apps using username/password or facebook token</a></p>

<p>Suggested solution to look at Warden, but I don't think it needs to be so complicated.</p>

<p><a href="https://stackoverflow.com/questions/27908836/omniauth-for-rails-and-ios-authentication">omniauth for rails and ios authentication</a></p>

<p>Suggested solution is a gem, but the gem is no longer maintained.</p>

<p><a href="https://stackoverflow.com/questions/22663740/rails-devise-omniauth-facebook-login-from-ios">Rails Devise OmniAuth Facebook Login from iOS</a></p>

<p>Suggested solution affected mobile side development, which I'm hoping not to.</p>