zyra/ngx-facebook

fb_Page NOT WORKING with URL as variable

pachu4u opened this issue · 3 comments

Hi,

I am stuck with this strange issue.

This DOES NOT WORK

<fb-page [href]="data.facebook_url" tabs="timeline" >
I am sure the variable has the valid url of facebook

However hardcoding the href works

Thanks. Appreciate your help in this regard

attaching console logs
Screen Shot 2020-08-28 at 11 16 47

@pachu4u I had the same issue. My workaround has been to add the href attribute to tag when my component was stable and before running this script: FB.XFBML.parse();

qanuj commented

<fb-page [attr.href]="data.facebook_url" tabs="timeline"> should work.