Auth with token

Hi. Can I firstly login with Facebook or Twitter SDK and after that login in Backendless with token from Facebook or Twitter?

Something like:

LoginManager.getInstance().registerCallback(callbackManager,
        new FacebookCallback<LoginResult>() {
            @Override
            public void onSuccess(LoginResult loginResult) {
                String token = loginResult.getAccessToken().getToken();
                Backendless.UserService.loginWithOAuth(context, "facebook", token, new AsyncCallback<BackendlessUser>() {
...
...
            }

Hi,

I don’t think it’s possible. Why do you need this?

Stanislav

Because it will be comfortable for my project structure. At this moment I am testing different baas services

You can use REST API to login to Backendless using a token from Facebook. See the API here (scroll down to the “Login with Facebook SDK” section):

https://backendless.com/documentation/users/rest/users_facebook_login.htm