To add a Facebook share or like button today, generate current code from Facebook's developer docs, or use a WordPress plugin like Jetpack, AddToAny, or Social Warfare. The embed code in this article is outdated.
Facebook's sharing and like buttons have been redesigned multiple times since this article was written. The embed code and API referenced here are no longer valid. Facebook now provides updated share buttons through their developer documentation.
If you use WordPress, most social sharing plugins (Jetpack, AddToAny, Social Warfare) handle Facebook buttons automatically with current API code.
This article is preserved for reference only.
