# Custom UI on iOS with loginSocial not working

**URL:** <https://community.auth0.com/t/custom-ui-on-ios-with-loginsocial-not-working/8719>\
**Category:** Get Help\
**Tags:** facebook-login, not-working, ios\
**Created:** [November 11, 2017, 12:01am UTC](https://community.auth0.com/t/custom-ui-on-ios-with-loginsocial-not-working/8719 "2017-11-11T00:01:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rucheton](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@rucheton](https://community.auth0.com/u/rucheton)\
**Post date:** [November 11, 2017, 12:01am UTC](https://community.auth0.com/t/custom-ui-on-ios-with-loginsocial-not-working/8719/1 "2017-11-11T00:01:14Z")

</div>

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](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!

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [March 2, 2018, 5:57am UTC](https://community.auth0.com/t/custom-ui-on-ios-with-loginsocial-not-working/8719/2 "2018-03-02T05:57:22Z")

</div>


