Custom UI on iOS with loginSocial not working

Hi, I’ve been trying to do a facebook login with a custom interface using:

Auth0.authentication().loginSocial(token: “test”, connection: “facebook”, scope: “”, parameters: :]).start { (credentials) in
print(credentials)
}

But all I get is this message:
Grant type ‘http://auth0.com/oauth/legacy/grant-type/access_token’ not allowed for the client.
I’ve seen that we can’t allow this grant type anymore. So what can I do??
If anybody has any idea, I’ll take it!