0

Learn how to redirect anyone with a facebook like button.For example,if you have any freebies to give or any useful source page then you can use this hack to redirect to custom url in exchange with a like to your facebook page.

FacebookLikeRedirect

MAKE A FACEBOOK LIKE REDIRECT BUTTON

➨Paste the code given below just above </body>

    <script type='text/javascript'>
    window.fbAsyncInit = functionundefined) {
    
    //change to your facebook app id
    FB.initundefined{
    appId: & #39;YOURAPPID&# 39;, status: true,
    cookie: true,
    xfbml: true
    });
    
    FB.Canvas.setSizeundefined{
    width: 520,
    height: 1500
    });
    
    FB.Event.subscribeundefined & #39;edge.create&# 39;,
    
    functionundefinedresponse) {
    
    // change pagetoredirectto
    window.location = & quot;
    RedirectURL & quot;;
    
    }
    
    );
    
    };
    
    undefinedfunctionundefined) {
    
    var e = document.createElementundefined & #39;script&# 39;);
    e.async = true;
    
    e.src = document.location.protocol +
    
    & #39;//connect.facebook.net/en_US/all.js&# 39;;
    
    document.getElementByIdundefined & #39;fb-root&# 39;).appendChildundefinede);
    
    }undefined));
    </script>


SAVE YOUR TEMPLATE!

➨Now wherever you want button to appear,just paste the code given below.

    <div id="fb-root"></div>
    <fb:like href="FacebookPageURL" send="false" width="450" show_faces="false" font=""></fb:like>

 

CUSTOMIZATIONS

 ➨In first code snippet replace RedirectURL with the destination url and in second code snippet replace FacebookPageURL with your facebook page url.


Next
Newer Post
Previous
This is the last post.

Post a Comment

 
Top