Adding Facebook Connect

This topic contains 3 replies, has 3 voices, and was last updated by  Martin Omaga 9 years ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #49871

    Martin Omaga
    Expired Member
    Post count: 121

    Hi!

    We are using NextEnd FB Connect, but it appears only in wp-login.

    How can we implement it in the register page? We have the code snippet to paste it, only need to know which file and where to paste it (we can hardcode, no problem).

    Thanks.

    #49909

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Hi Martin,

    It should just be a cse of adding one line but their code looks for paticualr div ID’s so we have to use their code from the settings page such as below, use the code given in the plugins settings page and replace it with my one below.

    Add this code to your theme functions.php file

    
    
    add_action('social_connect_form','my_social_connect_code');
    function my_social_connect_code(){
    ?>
    <a href="http://site.com/wp-login.php?loginFacebook=1&redirect=http://site.com" onclick="window.location = 'http://site.com/wp-login.php?loginFacebook=1&redirect='+window.location.href; return false;">Click here to login or register with Facebook</a>
    <?php
    }
    #49910

    Paolo
    Site Admin
    Post count: 31206

    p.s. obviously change

    http://site.com

    within Stiofan’s function with your actual domain.

    Thanks

    #54981

    Martin Omaga
    Expired Member
    Post count: 121

    Thanks!

Viewing 4 posts - 1 through 4 (of 4 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount