ngx-facebook icon indicating copy to clipboard operation
ngx-facebook copied to clipboard

fb_Page NOT WORKING with URL as variable

Open pachu4u opened this issue 4 years ago • 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

pachu4u avatar Aug 28 '20 05:08 pachu4u

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

pachu4u avatar Aug 28 '20 05:08 pachu4u

@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();

AColo89 avatar Feb 02 '21 10:02 AColo89

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

qanuj avatar Jul 06 '22 16:07 qanuj