# Require Accept Terms on Social Connections

**URL:** <https://community.auth0.com/t/require-accept-terms-on-social-connections/6377>\
**Category:** Get Help\
**Tags:** social-connections, lock\
**Created:** [April 27, 2017, 1:39am UTC](https://community.auth0.com/t/require-accept-terms-on-social-connections/6377 "2017-04-27T01:39:20Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![adampmoore](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/adampmoore/32/2181_2.png) [@adampmoore](https://community.auth0.com/u/adampmoore)\
**Post date:** [April 27, 2017, 1:39am UTC](https://community.auth0.com/t/require-accept-terms-on-social-connections/6377/1 "2017-04-27T01:39:20Z")

</div>

If I want the user’s to accept terms when creating an account, there is that option with Lock for Username/password signup, but it seems with Social Connections such as Facebook, user’s can login with no regard to accepting the terms.

Is this just how it works or a bug? Kinda makes having “accept terms” and “facebook login” an impossibility unless I’m missing something.

---

<div class="post-metadata">

**Author:** ![prashantT](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/prashantt/32/6002_2.png) [@prashantT](https://community.auth0.com/u/prashantT)\
**Post date:** [April 27, 2017, 12:27pm UTC](https://community.auth0.com/t/require-accept-terms-on-social-connections/6377/2 "2017-04-27T12:27:40Z")

</div>

The Lock `acceptTerms` feature is only available for database connections. You can achieve this functionality using Redirect Rules:

> **[Redirect Users from Within Rules](https://auth0.com/docs/customize/rules/redirect-users)**
>
> Learn how to customize authentication flows by redirecting users using rules. Example areas that can be customized include MFA, privacy policy acceptance, and gathering user data.

E.g.

1. User signs up with Facebook
2. Rule checks for social, first time login → Redirects to your T&C acceptance page
3. Upon acceptance on your page, you can call the `/continue` endpoint to complete the authentication flow and return to your application.

Your rule could look something like:

```
function (user, context, callback) {

  if (context.protocol === "redirect-callback") {
    // User was redirected to the /continue endpoint
    return callback(null, user, context);
    
  } else if(context.connection === 'facebook' && context.stats.loginsCount === 1){
    // User is facebook user, first time login
    // Redirect to T&C acceptance page
    context.redirect = {
      url: "https://myapp.com/acceptTerms"
    };
    return callback(null, user, context);
  } else {
    //DB connection user, or Facebook user who has logged in before
    return callback(null, user, context); 
  }
   
}

```

---

<div class="post-metadata">

**Author:** ![zatziky](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/zatziky/32/10325_2.png) [@zatziky](https://community.auth0.com/u/zatziky)\
**Post date:** [January 18, 2018, 7:25pm UTC](https://community.auth0.com/t/require-accept-terms-on-social-connections/6377/3 "2018-01-18T19:25:23Z")

</div>

@prashant Hey Prashant, do you plan to add the feature “accept terms for social plugins” too?

---

<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:53am UTC](https://community.auth0.com/t/require-accept-terms-on-social-connections/6377/4 "2018-03-02T05:53:31Z")

</div>


