SyntaxFix
Write A Post
Hire A Developer
Questions
You were very close with your original example. You could either use @jAndy's suggestion or:
if (typeof FB != 'undefined')