Facebook application access
Go to settings > general settings > other
Facebook only allows registrated apps to interact with Facebook accounts and pages. The next step is therefore to register your app.
You can register a new app on this page
To register a Facebook App you need to provide: Site name, Site url (with ending "/") and the locality of your application.
If everything is OK, you get to a registration conformation screen, where you get the two important informations: App ID and App Secret that you need in settings.