Posted By

vishnuajit on 04/06/15


Tagged

popup script fb


Versions (?)

fp page popup


 / Published in: PHP
 

how to make a fb page popup on a sample php page example.

  1. <?php
  2.  
  3. echo 'test php fb like';
  4. ?>
  5. <html>
  6.  
  7. <body>
  8. <div id="fb-root"></div>
  9. <script>(function(d, s, id) {
  10. var js, fjs = d.getElementsByTagName(s)[0];
  11. if (d.getElementById(id)) return;
  12. js = d.createElement(s); js.id = id;
  13. js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.3";
  14. fjs.parentNode.insertBefore(js, fjs);
  15. }(document, 'script', 'facebook-jssdk'));</script>
  16. </body>
  17.  
  18. <div class="fb-page" data-href="https://www.facebook.com/vishnudigitalmedia" data-width="340" data-height="250" data-hide-cover="false" data-show-facepile="true"
  19.  
  20. data-show-posts="false"></div>
  21. </html>

Report this snippet  

You need to login to post a comment.