Native App Login

Our native applications for iOS and Android are no longer being accepted by Facebook because they are not using the Facebook SDK to login Facebook users (literally got this answer: “while doing signup in the Android and IOS it is leading to web page, that may not happen for the mobile devices”).

I was wondering, can we do something similar to Auth0’s token exchange for native apps:

i.e.

  1. use the Facebook SDK natively to get a Facebook access token
  2. call the Facebook Graph API to get a Facebook Session Info Access Token
  3. Call Keycloak with grant_type: 'urn:ietf:params:oauth:grant-type:token-exchange' with the Facebook Session Info Access Token as subject token, to get a Keycloak user access token?