Facebook Sharing Script
2014-06-21, 01:04 PM,
#1
can anyone help me in finding a script that i can apply it for my website or blogger, the script will basically do that the person have to share it on Facebook so he can open the website.
Thanks
Reply
Share This Thread :

2014-06-21, 01:14 PM, (This post was last modified: 2014-06-21, 01:21 PM by xyzabc.)
#2
Yes! i have such a script ! add me to skype: #######
Reply
2014-06-21, 01:17 PM,
#3
(2014-06-21, 01:14 PM)xyzabc Wrote: Yes! i have such a script ! add me to skype:shubham.garg73

ok bro ill add you on skype
Reply
2014-06-23, 03:37 AM,
#4
If you are using wordpress, you can try the social locker plugin!
Reply
2014-06-25, 12:50 AM,
#5
you can use this :) :)

[hide]
Code:
<!-- --------------------------- -->
<!-- FACEBOOK VIRAL SCRIPT BEGIN -->
<!-- --------------------------- -->

<style>
    #fvsbg {
        position:fixed;
        top:0;
        left:0;
        z-index: 99;
        background-color: rgba(0,0,0,0);
        width: 100%;
        height: 100%;
    }
    #fvsmain {
        position:fixed;
        top:200px;
        left:50%;
        margin-left:-225px;
        z-index:100;
        width:450px;
        color:#333;
        text-align:center;
        font-family:arial,sans-serif;
        font-size:13px;
        background:transparent;
        line-height:1;
        height:200px;
        display:none;
    }
    #sharebtn {
        width: 200px;
        margin: 0 auto;
        display: block;
        position: relative;
    }
    #h1 {
        color: #FFFFFF;  
        font-size: 2em;
        margin: 0.67em 0;
        text-shadow: 0.1em 0.1em 0.2em black
    }        
    @media screen and (max-device-width: 480px) {              
        #fvsmain {
            position:fixed;
            top:0;
        }
    }
    
</style>
<div id="fb-root"></div>

    <script type="text/javascript">
    
        // SETTINGS (put information inside "")
        // See this screenshot to understand separate parts: http://img62.imageshack.us/img62/7468/hnk2.png
        
        var AppID = 'xxxxxxxxxxx'; // your Facebook App ID
        var link = 'xxxxxxxxxxxx.blogspot.com'; // link to your blog (must be the same as app's domain)
        var title = 'xxxxxxxxxxx'; // title of the post
        var description = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.'; //description of the post
        var picture = 'http://xxxxxxxxxxx/xxxxxxxx.jpg'; //image link for post
        
        // --------


    // FACEBOOK API        
        
      window.fbAsyncInit = function() {
        // init the FB JS SDK
        FB.init({
          appId: AppID
        });

        // Additional initialization code such as adding Event Listeners goes here
      };

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

    function feed(){
        FB.ui(
          {
            method: 'feed',
            name: title,
            link: link,
            picture: picture,
            description: description
          },
          function(response) {
            if (response.post_id) {
                SetCookie("FVSC","TRUE",1);
                document.getElementById("fvsbg").style.display="none";
                document.getElementById("fvsmain").style.display="none";
            } else {
              alert('You must share this to unlock the page!');
            }
          }
        );
    }

    // FB API END
            
        
        
    function SetCookie(cookieName,cookieValue,nDays) {
     var today = new Date();
     var expire = new Date();
     if (nDays==null || nDays==0) nDays=1;
     expire.setTime(today.getTime() + 3600000*24*nDays);
     document.cookie = cookieName+"="+escape(cookieValue)
                     + ";expires="+expire.toGMTString();
    }
    
    function ReadCookie(cookieName) {
     var theCookie=" "+document.cookie;
     var ind=theCookie.indexOf(" "+cookieName+"=");
     if (ind==-1) ind=theCookie.indexOf(";"+cookieName+"=");
     if (ind==-1 || cookieName=="") return "";
     var ind1=theCookie.indexOf(";",ind+1);
     if (ind1==-1) ind1=theCookie.length;
     return unescape(theCookie.substring(ind+cookieName.length+2,ind1));
    }        
            
    window.onload=function() {
        if(ReadCookie("FVSC") == "TRUE")
        {
            document.getElementById("fvsbg").style.display="none";
            document.getElementById("fvsmain").style.display="none";
        }
        if(ReadCookie("FVSC") != "TRUE")
        {
            document.getElementById("fvsbg").style.backgroundColor="rgba(0,0,0,0.6)";
            document.getElementById("fvsmain").style.display="block";
        }
    };        
    
    if(document.URL.indexOf("blogspot") >= 0)
    {
        if(document.URL.split('.')[1] + document.URL.split('.')[2] + document.URL.split('.')[3] != 'blogspotcom/undefined')
        {
            window.location = link + "/ncr";
        }
    }            
    </script>
    
    <div id="fvsbg"></div>
    <div id="fvsmain">
        <h1 id="h1" class="center">Share to Unlock this page</h1>
        <a href="#" onclick="feed();"><img id="sharebtn" src="https://i.imgur.com/5mSP6c1.png" /></a>
    </div>    
    
<!-- --------------------------- -->
<!-- FACEBOOK VIRAL SCRIPT END -->
<!-- --------------------------- -->
[/hide]
Reply
2014-06-25, 01:56 AM,
#6
does your app need approval for this script
Reply
2014-06-25, 03:07 AM,
#7
Please post in the correct section next time.

Any questions related to CPA belong here.
Before posting, make sure you are in the correct section.

I am temporarily absent due to family circumstances.

Reply
2014-06-25, 08:02 AM,
#8
(2014-06-25, 12:50 AM)sek c bot Wrote: you can use this :) :)

Thanks Man :)
Reply


Related Threads
Thread Author Replies Views Last Post
  Facebook comments Smm panel? 2slick 1 89 2018-07-16, 07:56 PM
Last Post: salen72
  Blackhat Facebook Ads Questions blunt 16 626 2018-07-09, 10:40 AM
Last Post: LuckyStrike
  Facebook advertising is it fake traffic? CONNOR_JAMES 6 187 2018-07-06, 09:02 PM
Last Post: CharlieHarper
  Facebook Ads & CPA offers questions Heraclitus 12 595 2018-06-21, 03:07 AM
Last Post: ArtoAllan
  Facebook Ads Bug? WTF f1rew1re 4 250 2018-06-17, 05:33 PM
Last Post: Mr. Tokyo





About Us | Contact Us | CPA Elites | Advertise | Stats

© 2013-2018 CPA Elites Ltd
Enhanced by MyBB and WallBB
Return to top