I have a Facebook Like button function that perfectly displays all browsers on the desktop and on mobile devices. But the problems lie with low-resolution devices with a resolution of 240x320. The βLikeβ button forces the device to zoom in on the page, thereby ensuring horizontal scrolling.
The buttons perfectly display devices with a width> 320 pixels, such as iPhone, etc., but older Android devices with a width less than theirs.
The way I see it. The page loads fine, and then calls a Facebook call, and then returns with some parameter that breaks everything. It generates an <iframe> . I am trying to set width and overflow CSS options, but none of them work. I initialize the βLikeβ button as follows:
<div id="fb-root"> <!--Facebook begins--> <div class="fb-like" data-href="<%=RedirectURL%>" data-send="false" data-layout="button_count" width="80" data-show-faces="false"></div> <!-- ends --> </div> <script> window.fbAsyncInit = function () { FB.init({ appId: '328982000461228', status: true, cookie: true, xfbml: true }); FB.Event.subscribe('edge.create', function (response) { ntptEventTag('ev=Social&Action=Method Shared'); }); }; </script> <script type="text/javascript">
javascript css facebook iframe facebook-like
amit
source share