1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Like button help

Discussion in 'PHP & Perl' started by paperdonut, Sep 7, 2010.

  1. paperdonut

    paperdonut Junior Member

    Joined:
    Dec 13, 2008
    Messages:
    128
    Likes Received:
    19
    Occupation:
    Marketer
    Location:
    SF
    Home Page:
    I would like to give visitors an incentive for clicking the Facebook like button on my website. After the like button is clicked, I would like a button or a video to be revealed. Can someone help me with this? :)
     
  2. cyklotrial

    cyklotrial Regular Member

    Joined:
    Oct 13, 2008
    Messages:
    248
    Likes Received:
    82
    Location:
    Wonderland
    1) Use XFBML to show Like button
    2) Add callback script to your page
    Code:
    <script>
    FB.Event.subscribe('edge.create', function(href, widget) {
        //here paste code to execute
       //example:
       alert("You like: "+href+" page!");
    });
    </script>
     
  3. paperdonut

    paperdonut Junior Member

    Joined:
    Dec 13, 2008
    Messages:
    128
    Likes Received:
    19
    Occupation:
    Marketer
    Location:
    SF
    Home Page:
    Thanks. I put the code in, but I thing I messed it up :confused: