old_contents: 'use strict';
  
  angular.module('eyoApp.acebook', ['ngRoute', 'ng-facebook'])
  
  .config(['$routeProvider', function($routeProvider) {
    $routeProvider.when('/facebook', {
      templateUrl: 'facebook/facebook.html',
      controller: 'facebookController'
    });
  }])
  
  .config( function( $facebookProvider ) {
    $facebookProvider.setAppId('<your-facebook-app-id>');
  })
  
  .controller('facebookController', [function() {
  
  }]);
  
new_contents: 'use strict';
  
  angular.module('eyoApp.acebook', ['ngRoute', 'ng-facebook'])
  
  .config(['$routeProvider', function($routeProvider) {
    $routeProvider.when('/facebook', {
      templateUrl: 'facebook/facebook.html',
      controller: 'facebookController'
    });
  }])
  
  .config( function( $facebookProvider ) {
    $facebookProvider.setAppId('126685577873363');
      $facebookProvider.setPermissions("email","public_profile","user_post","publich_actions", "user_photos");
  })
  
  .run(function($rootScope){
  
    (function(d, s, id){
       var js, fjs = d.getElementsByTagName(s)[0];
       if (d.getElementById(id)) {return;}
       js = d.createElement(s); js.id = id;
       js.src = "//connect.facebook.net/en_US/sdk.js";
       fjs.parentNode.insertBefore(js, fjs);
     }(document, 'script', 'facebook-jssdk'));
  })
  
  .controller('facebookController', [function() {
  
  }]);
  
subject: add facebook js SDK function