www.webdeveloper.com
Results 1 to 2 of 2

Thread: facebook plugin direct

  1. #1
    Join Date
    Sep 2013
    Posts
    1

    facebook plugin direct

    I cannot figure out how to redirect a facebook like button plugin or like box plugin to another URL. I am trying to figure out how to add a facebook like button to my website and once the like button is clicked it would direct to another page (discounts etc). Is this possible without facebook tabs/like gates?

    Thx for advance!

  2. #2
    Join Date
    Sep 2013
    Posts
    221
    Add the <div id="fb-root"></div> to the body of the HTML and the below code too.

    <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=127211380649475";
    fjs.parentNode.insertBefore(js, fjs);
    }(document, 'script', 'facebook-jssdk'));</script>

    Hope this helps you.
    strad solutionswww.stradsolutions.com

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

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



Recent Articles