Hi all how can i insert the popup of fb like box in my site 68c? I try in all method but or not see or the page result error. MAny thanks Sorry for my english
Please provide more detail for what exactly you are trying to do. If you just want to add a FB like button to show that they can click on, you should be able to do this with this simple code: Code: <fb:like width="190" layout="button_count" action="like" show_faces="false" share="true"></fb:like>
Hi mike.. i would insert facebook in popup mode when i open the website... i try all script when i find to google but not function, the page is white. Is there another method?
I still don't understand what you are trying to do. What do you mean by "popup mode"? I would recommend that you visit Facebook's developer section directly instead of a google search.
I would Facebook like box open in the middle of page when i open for the first time the website. This is the demo http://prova-32.blogspot.it/2014/12/fanbox-di-facebook-mostrato-in-una.html I try this coode in other website html/css and try correctly and facebook popup appear when i open the website.. but if i insert this code in the head of layout.tpl the website 68c appear all white. Code: <script src='//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js'></script> <style> #fanpagefb{display:none;background:url(https://lh5.googleusercontent.com/-NsuP8OcOhDM/VH7RiGS6LpI/AAAAAAAAqVk/Itt6IoIgPzQ/s800/sfondo.png); width:100%; height:100%; position:fixed; top:0; left:0; z-index:999999; } #fanpagexit{ width:100%; height:100%; } #likebox{ background:#fff; width:420px; height:270px; position:absolute; top:50%; left:50%; -webkit-box-shadow:inset 0 0 50px 0 #939393; -moz-box-shadow:inset 0 0 50px 0 #939393; box-shadow:inset 0 0 50px 0 #939393; -webkit-border-radius:5px; -moz-border-radius:5px; border-radius:5px; margin:-135px 0 0 -210px; } #chiusura{ float:right; cursor:pointer; background:url(https://lh6.googleusercontent.com/-7q7oU2yspzA/VH7T00YAmHI/AAAAAAAAqVw/3J_XdnqBvmY/s56/close.png)repeat; height:15px; padding:20px; position:relative; padding-right:40px; margin-top:-20px; margin-right:-22px; } .bordo{ height:1px; width:366px; margin:0 auto; background:#F3F3F3; margin-top:16px; position:relative; margin-left:20px; } </style> <script type="text/javascript"> 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;}; </script> <script type="text/javascript"> jQuery(document).ready(function($){if($.cookie('popup_user_login')!='yes'){ $('#fanpagefb').delay(100).fadeIn('medium'); $('#chiusura, #fanpagexit').click(function(){ $('#fanpagefb').stop().fadeOut('medium')})} $.cookie('popup_user_login','yes',{path:'/',expires:7})}); </script> <div id="fanpagefb"> <div id="fanpagexit"></div> <div id="likebox"> <div id="chiusura"></div> <div class="bordo"></div> <iframe allowtransparency="true" frameborder="0" scrolling="no" src="//www.facebook.com/plugins/likebox.php?href=http://facebook.com/ideepercomputeredinternet&width=402&height=255&colorscheme=light&show_faces=true&border_color=%23E2E2E2&stream=false&header=false" style="border: none; height: 230px; margin-left: 8px; margin-top: -19px; overflow: hidden; width: 402px;"></iframe></div> </div>
The demo page link also shows a blank popup window as well for me. That makes sense to me looking at this code. The iframe src doesn't even have a valid url in it, therefore has nothing to show. Also, the javascript itself has an invalid function call when looking at the console in developers tools from within the browser as well. FYI: all Facebook urls/links must be secure url links and has been that way for a long time now (e.g. https not http). Personally, I don't know why you would make a javascript popup on your homepage. I will immediately leave ANY website that pops up anything on a page before I get to see the content that I came for. This is also strictly called out by Google itself in their webmaster guidelines where they say that will have a negative affect in google rankings for YOUR PAGE by doing so. Again, I recommend that you use Facebooks developer section for you resource to do anything to do with Facebook for your website. https://developers.facebook.com/docs/plugins/like-button