ng2-meta icon indicating copy to clipboard operation
ng2-meta copied to clipboard

Tag specified as 'name' instead of 'property'

Open CENESDev opened this issue 6 years ago • 0 comments

The following meta tags are specified using 'name' instead of 'property' and will be ignored unless specified using the 'property' key: fb:app_id

I use ng2-meta tag function, but in facebook debugger, I am getting this error.

I have checked the ng2-meta code for ng2-meta.umd.js file, here is the code:

function (tag, value) { /** @type {?} */ var prop = 'name'; if (tag.startsWith("og:")) { prop = 'property'; } this.meta.updateTag((_a = {}, _a[prop] = tag, _a.content = value, _a)); var _a; };

fb:app_id does not have og keyword, that is what is creating the problem. Plugin needs to be updated by the author.

CENESDev avatar Feb 11 '19 15:02 CENESDev