It’s really difficult to use the code Facebook provides on that page with WordPress, as it requires either hacking your theme, or creating a child theme. That code is more for people writing web pages from scratch.
There are plenty of Facebook plugins for WordPress, have you tried any of them? Additionally, Graphene can easily make use of code from a site like addthis.com.