This topic has 8 replies, 2 voices, and was last updated 9 years by Kamal.

  • Author
  • #35112
     Andrepc1876
    Participant

    i am having 2 major problems that i would like to be assisted with

    1) i would like to know the step by step procedure to install the facebook login api code in my php as i am not able to find the html/php <body> or could someone assist me with find the html section to put the code

    The following snippet of code will give the basic version of the SDK where the options are set to their most common defaults. You should insert it directly after the opening <body> tag on each page you want to load it:
    <script>
    window.fbAsyncInit = function() {
    FB.init({
    appId : ‘code’,
    xfbml : true,
    version : ‘v2.2’
    });
    };

    (function(d, s, id){
    var js, fjs = d.getElementsByTagName(s)[0];
    if (d.getElementById(id)) {return;}
    js = d.createElement(s); js.id = id;
    js.src = “//connect.facebook.net/en_US/sdk.js”;
    fjs.parentNode.insertBefore(js, fjs);
    }(document, ‘script’, ‘facebook-jssdk’));
    </script>

    secondl
    when i click log in and it pops up with the option for facebook or wp, when i click on fb it does not move or even so that it is trying to connnect to facebook. all i see when i hover my mouse over the fb login is http://www.mysite.com/#

    please assist as i find the fb log in to be very helpful and useful.

    Attachments:
    You must be logged in to view attached files.
    #35114
     Andrepc1876
    Participant
    #35118
     Kamal
    Moderator

    Hi,
    You can add the above code under the body tag. You need to copy the header.php file from the parent theme folder(can be found here > wp-content/themes/kleo/) to child theme folder(this folder> wp-content/themes/kleo-child/). then you can edit header.php and place your code below <body> tag. however, You can integrate facebook login to your website without using the above code just by going to Theme Options>Miscellaneous>Facebook integration and turn it on and set your Facebook APP ID in the box. Then you can let user login via facebook. I have attached a screenshot for better understanding. I hope this help. Thanks,
    Kamal

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    Attachments:
    You must be logged in to view attached files.
    #36013
     Andrepc1876
    Participant

    still having trouble with it it says app not set up properly….please help

    Attachments:
    You must be logged in to view attached files.
    #36021
     Andrepc1876
    Participant

    i have done all that you said and nothing work i created the app id and entered it and it still gives that error can some one please assist me as my users are complaining

    #36120
     Andrepc1876
    Participant

    found the solution…:)

    #36127
     Kamal
    Moderator

    Hi,
    Thanks, Congratulations. Would you please tell me how you fix your problem finally? In case, this info will be helpful for other member.
    Thanks,
    Kamal

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #36552
     Andrepc1876
    Participant

    well kamal it seems the app that i made was not fully integrated into my site. you have to make the facebook app visible to public. if it kept hidden in the app manager on facebook then it will produce an error

    #36644
     Kamal
    Moderator

    Hi, thank you very much for the info. Best of luck with your site. 🙂

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
Viewing 9 posts - 1 through 9 (of 9 total)

The topic ‘facebook integration’ is closed to new replies.

Log in with your credentials

Forgot your details?