Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Having id of "FB" in templates causes plugin to stop working #47

Open
NenadP opened this issue Jul 1, 2015 · 2 comments
Open

Having id of "FB" in templates causes plugin to stop working #47

NenadP opened this issue Jul 1, 2015 · 2 comments

Comments

@NenadP
Copy link

NenadP commented Jul 1, 2015

There is an issue - if you have markup like this:

<div id="FB"></div>

plugin will fail to initialize.

It is caused by using FB in global scope - in angular-easyfb.js

 $window.FB.init(ezfbInitParams);

https://github.com/pc035860/angular-easyfb/blob/master/angular-easyfb.js#L130

@NenadP NenadP changed the title Social plugin issue with ng-view Having id of "FB" in templates causes plugin to stop working Jul 1, 2015
@pc035860
Copy link
Owner

pc035860 commented Jul 3, 2015

Hi @NenadP ,

Any suggestion on this?
I thought the only way to use FB JS SDK is accessing it through global scope ($window.FB here)?

@NenadP
Copy link
Author

NenadP commented Jul 3, 2015

Agh - yes I unserstand now - it is registered there by Facebook JS SDK. So nothing much could be done here I think?

I don't need to use id="FB" :) happily.

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants