Working in facebook event handled by AngularJS