0
I’m trying to call the facebook button on a page index.php,
but the same does not appear on the page
below the code:
<?php session_start(); ?>
<!DOCTYPE html>
<html>
<head>
<meta charsert="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE-edge">
<title>Home</title>
</head>
<body>
<SCRIPT TYPE="text/javascript" scr="./fbapp/fb.js"></script>
<div id="content" style="width: 70%, float: left;">
<h2>Welcome <?php if (isset($_SESSION['name'])) {echo $_SESSION['name']; }?> </h2>
</div>
<div id="sidebar" style ="width 20% float: right">
<?php if (isset($_SESSION['name'])) { } else { ?><div class="fb-login-button" data-scope="plubic_profile, email" onlogin="
checkLoginState()" ></div><?php } ?>
</div>
</body>
</html>
in the archive fb.js
and logincallback
, I put my id of the facebook developers
below my folder structure.
index.php is in the mysite folder
You’re using it locally, usually nothing from facebook, or like and share buttons, appear when vc is offline. Test the page already hosted and online, it should appear.
– Tiago P.C
You know those cool and easy Apis from Google? Yeah, in Face it’s the other way around...
– brasofilo