Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

You can load FB buttons and stuff without affecting your site at all, even if FB has DNS issues or is blocked by a firewall https://www.facebook.com/note.php?note_id=10151176218703920

You load the JS SDK using the "fif" pattern. If it fails to load, none of the tags like <fb:like> etc get replaced by iframes, so no errors on the page. `DOMContentLoaded` and `onload` on your page fire as usual. It's as if the site doesn't even use FB widgets



Just be aware that doing that gives FB a chance to sniff cookies, referrer and other stuff on your own page.

<sarcasm>Of course, FB is completely trustworthy with any data you give them access to, so nothing wrong will ever happen.</sarcasm>




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: