luiscarlosjayk/angular-facebook

Adress social plugins parsing

Opened this issue · 1 comments

Hi there.

I'm glad to find a angular way to use the FB API, but I faced a problem with my app using HTML5 navigation and social plugins (like button for example).

The only way I found to have FB parsing my like divs is to call FB.XFBML.parse, and it seems it's not implemented in the Facebook angular service.
So based on http://stackoverflow.com/questions/23806303/angularjs-socials-share-buttons-troubles-the-display-is-only-in-one-page I ended with an ugly :

$scope.$watch(function() {
                return Facebook.isReady();
                }, function(fbIsReady) {
                if (fbIsReady) {
                    $window.FB.XFBML.parse($elem.parent()[0]);
                }
  });

Did I miss a way to call XFBML.parse using your module ?

Sorry, just here to say that I got the same issue. I cannot render facebook comments..