MAS Social Login Does CA Mobile SDK support social login via Facebook Native app?

Document ID : KB000118766
Last Modified Date : 31/10/2018
Show Technical Document Details
Question:
The user has implemented the Facebook social login in their app using CA Mobile SDK 1.8 and MAG 4.1. The social login works but uses the device web browser. 

Is it possible to configure the CA SDK and/or MAG to use the FB Native app?
Environment:
CA Mobile SDK 1.8 and MAG 4.1
Answer:
MAG SDK does not support native Social Login out of the box, there is no integration with FacebookSDK or Google SDK. However, MAG SDK provides flexibility to log in with different type of user credentials, MASAuthCredentials is extensible which allow developer to define their own login credentials and grant type. For example, once the ID_TOKEN is retrieved from Google SDK or Facebook SDK, you can use MASUser.login(MASAuthCredentials) to pass the ID_TOKEN from the client to MAG Server (customization on server endpoint is required), the server validate the token and provide userinfo back to the client.