Iluvatar+ Posted May 10, 2012 Share Posted May 10, 2012 Any one know a way of over-riding the default CSS styles on HTML5 based facebook widgets. Driving me mad trying to find a solution. Quote Link to comment https://forums.phpfreaks.com/topic/262355-facebook-likebox-manipulation/ Share on other sites More sharing options...
Adam Posted May 10, 2012 Share Posted May 10, 2012 If you're not easily finding a way, I would say it's because FB don't want you to. Branding will be a big thing for them.. Edit Just to add to that, by "finding a way" I meant through their API. If you're using the iframe widgets then you won't be able to access them with JS, because that would be cross-site scripting. I know they have a more scripted alternative (or something) but I don't know how they work, I've never really had to use them. Quote Link to comment https://forums.phpfreaks.com/topic/262355-facebook-likebox-manipulation/#findComment-1344510 Share on other sites More sharing options...
nogray Posted May 10, 2012 Share Posted May 10, 2012 Regardless of what code you use, the final HTML (produced by JavaScript) is a simple iframe and you can't change it. Quote Link to comment https://forums.phpfreaks.com/topic/262355-facebook-likebox-manipulation/#findComment-1344519 Share on other sites More sharing options...
ManiacDan Posted May 10, 2012 Share Posted May 10, 2012 The facebook button is an iframe, and cannot be changed by you. Facebook changes the like button every few weeks, sometimes a few times a week. I've seen the box change size, shape, and color multiple times throughout the day. You absolutely cannot let your layout depend on it. Quote Link to comment https://forums.phpfreaks.com/topic/262355-facebook-likebox-manipulation/#findComment-1344522 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.