How can I make the Facebook Like button’s width automatically resize?

#fblike iframe { width: 95px !important; } #fblike .fb_edge_comment_widget iframe { width: 330px !important; } And <div id=”fblike”><fb:like show-faces=”false” layout=”button_count”></fb:like></div> This way both comment and like button iframes are fixed width. No funny effects. Hope it helps.

Create a file using Javascript in Chrome on client side

Sure you can, using the brand new APIs. window.requestFileSystem = window.requestFileSystem || window.webkitRequestFileSystem; window.requestFileSystem(window.TEMPORARY, 1024*1024, function(fs) { fs.root.getFile(‘test.bin’, {create: true}, function(fileEntry) { // test.bin is filename fileEntry.createWriter(function(fileWriter) { var arr = new Uint8Array(3); // data length arr[0] = 97; // byte data; these are codes for ‘abc’ arr[1] = 98; arr[2] = 99; var blob … Read more

Content Security Policy: Couldn’t parse invalid source chrome-extension

I solved this same problem for myself after recently posting it as a Facebook bug on https://developers.facebook.com/x/bugs/729597157070762/ With FB’s help I noticed the following unwanted browser extensions in Firefox: Searchme, Slick Savings, Amazon Shopping Assistant, and Ebay Shopping Assistant. Turns out these are essentially malware that effected Firefox, Safari, and Chrome on my Mac. They’re … Read more

FB.logout() called without an access token

To logout from the application which uses facebook graph API, use this JavaScript on the logout page just after the <form> tag: window.onload=function() { // initialize the library with your Facebook API key FB.init({ apiKey: ‘b65c1efa72f570xxxxxxxxxxxxxxxxx’ }); //Fetch the status so that we can log out. //You must have the login status before you can … Read more