I have a Facebook login button in my app that uses 'angular-facebook' module. In my .config block I have following code:
FacebookProvider.init('myAppId');
Now I have service that is loading myAppId from DB via REST api but I dont know how to correctly load it and pass it in .config block.
I spent last 2 hours reading manuals angd googling how to do this but I am still confused how to make this work.