SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    Internet Business Optimizer KCgame's Avatar
    Join Date
    Mar 2005
    Location
    Singapore
    Posts
    931
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question How to show a facebook page on a wordpress page?

    Hi, may I know how can I show (or embed) a facebook fan page on a wordpress page?

    Appreciate if anyone can help, thank you!

  2. #2
    SitePoint Addict deadmix's Avatar
    Join Date
    Jun 2009
    Location
    france
    Posts
    210
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Hello there,

    Open the Footer.php of your Theme and add the First Code that Facebook Provided to you.. something like :

    Code:
    <div id="fb-root"></div>
    <script>(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/all.js#xfbml=1&appId=****************";
      fjs.parentNode.insertBefore(js, fjs);
    }(document, 'script', 'facebook-jssdk'));</script>
    The **************** will be your App ID number...

    Then Open the Page where you want to Embed the Fan Page To, by using Text Mode in the Editor :

    Code:
    <div class="fb-like-box" data-href="https://www.facebook.com/Your-Page" data-width="300" data-colorscheme="light" data-show-faces="true" data-header="false" data-stream="false" data-show-border="true"></div>
    Change Your-Page with your Page Name...

    Goodluck


Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •