diff --git a/src/transform.ts b/src/transform.ts index 9eb0637..b7962d8 100644 --- a/src/transform.ts +++ b/src/transform.ts @@ -6,7 +6,7 @@ import { camelcase, toAttrs } from './utils.ts'; export const transform = (options: Options): HtmlTagDescriptor[] => { const basicOGMetaAttrs = Object.entries(options.basic || {}).map(([name, content]) => toAttrs(camelcase(name), content, 'property', 'og')); const twitterOGMetaAttrs = Object.entries(options.twitter || {}).map(([name, content]) => toAttrs(camelcase(name), content, 'name', 'twitter')); - const facebookOGMetaAttrs = Object.entries(options.facebook || {}).map(([name, content]) => toAttrs(camelcase(name), content, 'name', 'fb')); + const facebookOGMetaAttrs = Object.entries(options.facebook || {}).map(([name, content]) => toAttrs(camelcase(name), content, 'property', 'fb')); const attrs = [...basicOGMetaAttrs.flat(), ...twitterOGMetaAttrs.flat(3), ...facebookOGMetaAttrs.flat()];