I am encountering an issue with initializing Facebook and other providers. Is there a way to run this code not at the start of the application, but when the user navigates to a specific page where I want to use it? I need to retrieve the APP_ID from an API call and do not wish to load unnecessary data on the homepage.
.config(function(FacebookProvider) {
// Set your appId through the setAppId method or
// use the shortcut in the initialize method directly.
FacebookProvider.init('YOUR_APP_ID');
})