Pass NULL as object in case it's not a node page. Add Facebook Javascript SDK inline with the button.