# Wordpress\>Buddypress\>Discourse Facebook signin plugin question

**URL:** <https://meta.discourse.org/t/wordpress-buddypress-discourse-facebook-signin-plugin-question/55459>\
**Category:** WordPress\
**Created:** [10. Januar 2017 um 05:32 UTC](https://meta.discourse.org/t/wordpress-buddypress-discourse-facebook-signin-plugin-question/55459 "2017-01-10T05:32:29Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)\
**Post date:** [14. Januar 2017 um 01:33 UTC](https://meta.discourse.org/t/wordpress-buddypress-discourse-facebook-signin-plugin-question/55459/9 "2017-01-14T01:33:15Z")

</div>

The Facebook Login plugin [Login for WordPress – WordPress plugin | WordPress.org](https://wordpress.org/plugins/wp-facebook-login/) can tie in with wp-discourse quite easily. It has an action that can be hooked into after a new user notification is sent out that looks like it should be safe to use.

Adding this to the `functions.php` file works, but it should really be tested some more:

```php
add_action( 'fbl/notify_new_registration', 'my_namespace_validate_email' );
function my_namespace_validate_email( $user_id ) {
	update_user_meta( $user_id, 'discourse_email_not_verified', false );
}

```

---

_[View the full topic](https://meta.discourse.org/t/wordpress-buddypress-discourse-facebook-signin-plugin-question/55459)._
