fb:comments-count tag not working in razor view

2019-08-26 00:23发布

问题:

I put facebook comment tag in razor view page.

<fb:comments-count href=http://example.com/></fb:comments-count> awesome comments

it breaks my page. is there a way to fix it?

回答1:

You may not have included the facebook xml namespace in your <html> tag.

<html xmlns:fb="http://ogp.me/ns/fb#">