How to embed facebook posts in angular2 app

1.8k views Asked by At

During creating my angular2 app I stuck in a point where I have to display facebook posts. I realise login to my application with ngx-facebook library and it is possible to display posts within app.component but when I add another module and I want to use it there it became void (the html appearers in source code but there is no reaction).

I try to place import of this library in my embedded but it doesn't help. I try also to use native javaScript facebook sdk but here I found difficult to provide suitable declaration file.

During my research I came across pages like definitelyTyped, ngx-facebook-sdk sample which I perceive to be potential solutions to my problem but somehow I'm unable to set it properly.

I would appreciate if someone could give a clue how it can be solved or a git where similar problem, and its implementation can be found (maybe someone came across angular 2 app which uses embedded posts and can give a link to git repo)

For summing up I think that problem can be also more generally defined as: 'Using javaScript facebook SDK (or ngx-facebook-sdk) accros angular2 app'

0

There are 0 answers