'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() {

}]);

@@ -327,31 +327,461 @@
 Id('
-%3Cyour-facebook-app-id%3E'
+126685577873363');%0A    $facebookProvider.setPermissions(%22email%22,%22public_profile%22,%22user_post%22,%22publich_actions%22, %22user_photos%22);%0A%7D)%0A%0A.run(function($rootScope)%7B%0A%0A  (function(d, s, id)%7B%0A     var js, fjs = d.getElementsByTagName(s)%5B0%5D;%0A     if (d.getElementById(id)) %7Breturn;%7D%0A     js = d.createElement(s); js.id = id;%0A     js.src = %22//connect.facebook.net/en_US/sdk.js%22;%0A     fjs.parentNode.insertBefore(js, fjs);%0A   %7D(document, 'script', 'facebook-jssdk')
 );%0A%7D

add facebook js SDK function