-
Author
-
November 11, 2014 at 23:31 #35112Andrepc1876Participant
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.November 11, 2014 at 23:33 #35114Andrepc1876Participantmy website is http://www.buyselljamaica.net
November 11, 2014 at 23:56 #35118KamalModeratorHi,
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,
KamalHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionAttachments:
You must be logged in to view attached files.November 20, 2014 at 01:05 #36013Andrepc1876Participantstill having trouble with it it says app not set up properly….please help
Attachments:
You must be logged in to view attached files.November 20, 2014 at 04:00 #36021Andrepc1876Participanti 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
November 20, 2014 at 21:36 #36127KamalModeratorHi,
Thanks, Congratulations. Would you please tell me how you fix your problem finally? In case, this info will be helpful for other member.
Thanks,
KamalHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionNovember 25, 2014 at 18:20 #36552Andrepc1876Participantwell 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
November 26, 2014 at 01:04 #36644KamalModeratorHi, 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 -
AuthorPosts
The topic ‘facebook integration’ is closed to new replies.