I've a rails app where my users can login in it with Devise gem and Omniauth-facebook gem. They can be 'normal' users or facebook users. All of this works correctly.
I've an API in this app authenticate by Doorkeeper too. From my mobile client I can send user and password and they can access to my API with an access_token. This works correctly.
Now, I want that my facebook users will be able to access to my API through theirs facebook login from the mobile app. somebody knows how I could do this? After login with facebook, I will have a token and I will be able to access some information about the user... but how I could connect to API?
Note: When you log in the rails app with facebook, Devise creates a new user with a provider and an uid fields.
any ideas? thanks a lot.