I tried the official Facebook post before but couldn't get it working. The FB documentations is also poor. This plugin is a very good alternative. Check out the documentation on the plugins homepage how to create a proper FB app.
If you're having trouble, it's most likely on FB's site.