How to enable Facebook Login

Home Forums Calendar Products Community Events How to enable Facebook Login

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1085600
    Michael
    Participant

    I want people to sign in when they submit an event, but I would like it if they could login with their facebook account, is this possible?

    #1086335
    George
    Participant

    Hey Michael,

    Thanks for reaching out! Our plugins unfortunately do not provide any of this functionality. 🙁

    If you enable Facebook login in general on your site through some other means, like with a plugin or some custom development, then one thing that might work is to override the default Community Events login/registration forms by redirecting all login attempts to that Facebook login form on your site that you generate through some other means….

    So, for example, if you setup Facebook login in some way on your site so that users can login/register on your site at your-site.com/facebook-login, then you can make sure that users who want to post Community Events have to go through that Facebook login page by adding this code snippet to your theme’s functions.php file:


    add_action( 'login_form_top', 'redirect_to_better_login_page' );

    function redirect_to_better_login_page() {

    if ( ! is_user_logged_in() ) {
    wp_safe_redirect( 'http://your-site.com/facebook-login/' );
    die();
    }
    }

    Sorry to disappoint on some levels here—I hope this information is helpful, though, and helps you move forward with your project.

    Let me know!

    Sincerely,
    George

    #1086472
    Michael
    Participant

    Thanks George! I think I will just let people post without having to login. Thanks!

    #1086752
    George
    Participant

    Sounds good @Michael, thanks for the update here—I will close this thread for now, but feel free to open a new thread any time if there’s anything else we can help with! 🙂

    Best of luck with your project,
    George

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘How to enable Facebook Login’ is closed to new replies.