zyra/ngx-facebook

Dynamically loading Facebook SDK script

Opened this issue · 1 comments

Hi, I'm wondering if it's worth it to add a method that dynamically/asynchronously adds the FB SDK script rather than manually add the reference in the index.html file? Would you be open to PRs for that kind of change? Thanks!

Sure we could do that.

Doesn't Facebook have that asynchronous function that injects the script? We can probably wrap that with a promise if it has callbacks.

PRs are welcome :)