davidchang / angular-facebook-utils

Angular Facebook Utils
72 stars 24 forks source link

$digest already in progress #21

Open danfergo opened 8 years ago

danfergo commented 8 years ago

Hi, i'm trying to the library working but i keep getting the same error. Also, i've dowloaded your code and after i replaced your appID by mine, i got the same error.

Cumps.

[$rootScope:inprog] $digest already in progress http://errors.angularjs.org/1.5.7/$rootScope/inprog?p0=%24digest at angular.js:68 at beginPhase (angular.js:17804) at Scope.$digest (angular.js:17234) at Scope.$apply (angular.js:17552) at Object. (facebookUtils.min.js:1) at Object.v.wrapper (all.js:88) at Object.inform (all.js:40) at la (all.js:85) at ga (all.js:85) at Object.ia as getLoginStatus(anonymous function) @ angular.js:13708(anonymous function) @ angular.js:10347$apply @ angular.js:17554(anonymous function) @ facebookUtils.min.js:1v.wrapper @ all.js:88inform @ all.js:40la @ all.js:85ga @ all.js:85ia @ all.js:85getLoginStatus @ all.js:111(anonymous function) @ all.js:90(anonymous function) @ all.js:88h @ facebookUtils.min.js:1(anonymous function) @ facebookUtils.min.js:1processQueue @ angular.js:16170(anonymous function) @ angular.js:16186$eval @ angular.js:17444$digest @ angular.js:17257$apply @ angular.js:17552(anonymous function) @ angular.js:19383completeOutstandingRequest @ angular.js:5955(anonymous function) @ angular.js:6234 all.js:88 Uncaught Error: [$rootScope:inprog] $digest already in progress

tsekki commented 8 years ago

I had the same error with my app. Fix was to use $timeout instead of $apply @ facebookUtils.js:72. Haven't fully tested library after this change, but seems to work ok.

danfergo commented 8 years ago

Yes, i just commented $appy, and it seems to be working.