zyra / ngx-facebook

Angular TypeScript Wrapper for Facebook SDK
http://zyra.github.io/ngx-facebook/
MIT License
209 stars 70 forks source link

fb_Page NOT WORKING with URL as variable #165

Open pachu4u opened 4 years ago

pachu4u commented 4 years ago

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

pachu4u commented 4 years ago

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

AColo89 commented 3 years ago

@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 2 years ago

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