In order to make Facebook login and comments work please follow the next steps:
Go to https://developers.facebook.com/apps and create new application;
Fill up the form;
Fill up required fields on the "Basic" page as shown on the image below and copy/paste your application ID and Secret.