The wordpress part of the plugging will not connect to fb

I have created the app in facebook and I have transferred the API and secret key to the wordpress plugin.
I receive the following error when trying to sav the changes

Please, enter correct Facebook API settings and make sure Facebook app is public