The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

facebook connect login

Go down

facebook connect login Empty facebook connect login

Post by dede.sonia.58 December 31st 2014, 8:36 pm

how to add a script from facebook .. for facebook connect login.


"
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:


Code:
<script>
  window.fbAsyncInit = function() {
    FB.init({
      appId      : '625810204213xxx',
      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>

my forum:http://forumnas.goem.info/




dede.sonia.58
dede.sonia.58
New Member

Posts : 1
Reputation : 1
Language : id

http://forumnas.goem.info/

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum