Scrip: Facebook Like Popup – Forcing People to Like

How can I get more people to like my page?" Of course, this isn't a simple, single post answer (I have an entire module in The Social Business Academy that is about only this!), but there is one really easy tip I can give you that will help you get more likes right away.

Make sure that your Facebook profile links directly to your Facebook page. When you setup your Facebook profile you have the option of adding where you work. This is where you can create a link to your Facebook page. Andyes, you can even edit it if you already have it setup incorrectly

Features

• Display the facebook lightbox onload with or without a delay
• Limit the lightbox to once every x days per individual visitors
• Promote your own facebook fanpage
• Facebook page is needed (of course!)
• No api key needed (works with iframe, premium version uses xfbml)

Scrip: Facebook Like Popup – Forcing People to Like

Past under the <head>

---------------------------------------------------------
<script src='https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js'></script>

Past code below over the </body>

----------------------------------------------------------

<!-- facebook like box starts -->
<!-- popup box stylings -->
<style type='text/css'>
#fb-back { display: none; background: rgba(0,0,0,0.8);   width: 100%; height: 100%; position: fixed; top: 0;   left: 0; z-index: 99999;}
#fb-exit { width: 100%; height: 100%; }
.fb-box-inner { width:300px; position: relative; display:block; padding: 20px 0px 0px; margin:0 auto; text-align:center; }
#fb-close { cursor: pointer; position: absolute; top: 5px; right: 5px; font-size: 18px; font-weight:700; color: #000; z-index: 99999; display:inline-block; line-height: 18px; height:18px;width: 18px; }
#fb-close:hover { color:#06c; }
#fb-box { min-width: 300px; min-height: 120px; position: absolute; top: 50%; left: 50%; margin: -220px 0 0 -150px; -webkit-box-shadow: 0px 0px 16px #000; -moz-box-shadow: 0px 0px 16px #000; box-shadow: 0px 0px 16px #000;
background: #fff; /* pop up box bg color */

}
.fb-box-inner h3 { line-height: 1; margin:0 auto; text-transform:none;letter-spacing:none;
font-size: 23px!important;  /* header size */
color:#06c!important; /* header color */
}
.fb-box-inner p { line-height: 1; margin:0 auto 20px;text-transform:none;letter-spacing:none;
font-size: 13px!important; /* header size  */
color:#333!important; /* text color */
}
a.fb-link { position:relative;margin: 0 auto; display: block; text-align:center; color: #333; /* link color */
bottom: -30px;
}
#fb-box h3,#fb-box p, a.fb-link { max-width:290px; padding:0; }
</style>
<!-- facebook plugin -->
<div id='fb-back'>
<div id='fb-exit'>
</div>
<div id='fb-box'>
<div class='fb-box-inner'>
<div id='fb-close'>X</div>
<!-- edit your popup header text here -->
<center><div style='font-size:20px;margin:0 auto;color:#000;'>Like Social Daily Times! </div><br/></center>
<!-- edit your supporting text here -->
<!-- edit your fb name below -->
<div class='fb-like' data-action='like' data-href='https://www.facebook.com/socialdailytimes.ml' data-layout='button' data-share='false' data-show-faces='false'></div>
<style>
.fb-like { overflow: hidden; height: 20px;}
</style>
<!-- edit your supporting link here -->
</div>
</div>
</div>
<!-- popup plug-in snippet -->
<script type='text/javascript'>
//<![CDATA[
//grab user's browser info and calculates/saves first visit
jQuery.cookie = function (key, value, options) { if (arguments.length > 1 && String(value) !== "[object Object]") { options = jQuery.extend({}, options); if (value === null || value === undefined) { options.expires = -1; }
if (typeof options.expires === 'number') { var days = options.expires,  t = options.expires = new Date();  t.setDate(t.getDate() + days); } value = String(value); return (document.cookie = [encodeURIComponent(key), '=', options.raw ? value : encodeURIComponent(value), options.expires ? '; expires=' + options.expires.toUTCString() : '', options.path ? '; path=' + options.path : '', options.domain ? '; domain=' + options.domain : '', options.secure ? '; secure' : ''].join('')); }
options = value || {}; var result, decode = options.raw ? function (s) { return s; } : decodeURIComponent; return (result = new RegExp('(?:^|; )' + encodeURIComponent(key) + '=([^;]*)').exec(document.cookie)) ? decode(result[1]) : null; };
// the pop up actions
$(function ($) {
  if ($.cookie('popup_fb') != 'yes') {
    $('#fb-back').delay(10000).fadeIn("slow"); // options slow or fast
    $('#fb-close, #fb-exit').click(function () {
      $('#fb-back').stop().fadeOut("slow"); // options slow or fast
    });
 }
//initiate popup function by setting up the cookie expiring time
$.cookie('popup_fb', 'yes', { path: '/', expires: 1 });
});
//]]>
</script>
<!-- facebook like box ends -->
<!-- YT Code -->
<script>
      var player;
      function onYouTubeIframeAPIReady() {
        player = new YT.Player( 'player', {
          events: { 'onStateChange': onPlayerStateChange }
        });
      }
      function onPlayerStateChange(event) {
        switch(event.data) {
          case 0:
            document.getElementById("content").style.display = 'block';
            
}
      }
      function record(str){
        var p = document.createElement("p");
        p.appendChild(document.createTextNode(str));
        document.body.appendChild(p);
      }
    </script>
<script src='https://www.youtube.com/iframe_api'></script>
<!-- YT Code -->
<style>
#content{
    display:none;
}
</style>
<div id='content'>
<!-- Share Facebook and Facebook like box starts -->
<!-- popup box stylings -->
<style type='text/css'>
#share-back { display: none; background: rgba(0,0,0,0.8);   width: 100%; height: 100%; position: fixed; top: 0;   left: 0; z-index: 99999;}
#share-exit { width: 100%; height: 100%; }
.share-box-inner { width:300px; position: relative; display:block; padding: 5px 0px 0px; margin:0 auto; text-align:center; }
#share-close { cursor: pointer;margin-top:5px; font-size: 20px; font-weight:700; color: #667; text-align: center;}
#share-close:hover {color: #D22321;}

#share-box { min-width: 300px; min-height: 300px; position: absolute; top: 45%; left: 50%; margin: -220px 0 0 -150px; -webkit-box-shadow: 0px 0px 16px #000; -moz-box-shadow: 0px 0px 16px #000; box-shadow: 0px 0px 16px #000;
background: #fff; /* pop up box bg color */

}
.share-box-inner h3 { line-height: 1; margin:0 auto; text-transform:none;letter-spacing:none;
font-size: 23px!important;  /* header size */
color:#06c!important; /* header color */
}
.share-box-inner p { line-height: 1; margin:0 auto 20px;text-transform:none;letter-spacing:none;
font-size: 13px!important; /* header size  */
color:#333!important; /* text color */
}
a.fb-link { position:relative;margin: 0 auto; display: block; text-align:center; color: #333; /* link color */
bottom: -30px;
}
#share-box h3,#share-box p, a.fb-link { max-width:290px; padding:0; }
</style>
<script type='text/javascript'>
//<![CDATA[
//grab user's browser info and calculates/saves first visit
jQuery.cookie = function (key, value, options) { if (arguments.length > 1 && String(value) !== "[object Object]") { options = jQuery.extend({}, options); if (value === null || value === undefined) { options.expires = -1; }
if (typeof options.expires === 'number') { var days = options.expires,  t = options.expires = new Date();  t.setDate(t.getDate() + days); } value = String(value); return (document.cookie = [encodeURIComponent(key), '=', options.raw ? value : encodeURIComponent(value), options.expires ? '; expires=' + options.expires.toUTCString() : '', options.path ? '; path=' + options.path : '', options.domain ? '; domain=' + options.domain : '', options.secure ? '; secure' : ''].join('')); }
options = value || {}; var result, decode = options.raw ? function (s) { return s; } : decodeURIComponent; return (result = new RegExp('(?:^|; )' + encodeURIComponent(key) + '=([^;]*)').exec(document.cookie)) ? decode(result[1]) : null; };
// the pop up actions
$(function ($) {
  if ($.cookie('popup_fb2') != 'yes') {
    $('#share-back').delay(2000).fadeIn("slow"); // options slow or fast
$(document).keyup(function(e) {
     if (e.keyCode == 27) { // escape key maps to keycode `27`
        $('#share-back').stop().fadeOut("slow"); // options slow or fast
    }
});


    $('#share-close, #share-exit').click(function () {
      $('#share-back').stop().fadeOut("slow"); // options slow or fast
    });
 }
//initiate popup function by setting up the cookie expiring time
$.cookie('popup_fb2', 'yes', { path: '/', expires: 0 });
});
//]]>
</script>
<!-- Share Facebook and Facebook like box ends --></div>

Download Scrip Below.txt
 download scrip fb popup

0 Comments

Post a Comment