seo_open_graph_generator
Generate Open Graph meta tags with type-specific sub-namespaces and Facebook share-card preview. Input structured fields; output assembled meta HTML and warnings.
Instructions
Open Graph Protocol Meta Tag Generator. Generate an Open Graph (ogp.me) meta-tag block from structured fields, plus type-specific sub-namespaces for article / book / profile / video and music types and a live Facebook share-card preview. Use seo_meta_tag_generator instead when you want a full head block (Twitter Card, canonical, robots, optional WebPage JSON-LD); use this tool when you need only the og tags with vertical sub-properties. Set operation to presets to fetch four worked example payloads. Runs locally on the data you supply: read-only, non-destructive, contacts no external service, and is rate-limited (60 requests/minute for anonymous callers). Returns the assembled meta HTML, a warnings list (length truncation, missing og image or og url, non-absolute URLs, unknown og type, bad BCP 47 locale), and a preview record.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| operation | No | generate assembles the meta block (title and description required); presets returns four example input records and ignores all other fields. | generate |
| title | No | og:title text. Required for generate. Warns when over 60 chars (Facebook truncates the share card). | |
| description | No | og:description text. Required for generate. Warns when over 65 chars (Facebook truncates the share card). | |
| image | No | og:image URL. Should be an absolute https URL at 1200x630 (1.91 to 1); relative URLs raise a warning. | |
| url | No | og:url canonical permanent URL of the page. Should be absolute with scheme; non-absolute raises a warning. | |
| siteName | No | og:site_name brand label. Optional; emitted only when non-empty. | |
| locale | No | og:locale IETF BCP 47 tag such as en_US or pt-BR. Underscore or hyphen accepted; off-pattern values raise a warning. | |
| type | No | og:type. Unknown values still emit but warn and behave as website. Selects which vertical sub-namespace is read. | website |
| article | No | Read only when type is article. Fields author, publishedTime, modifiedTime, expirationTime, section (strings) and tag (string array). | |
| book | No | Read only when type is book. Fields author, isbn, releaseDate (strings) and tag (string array). | |
| profile | No | Read only when type is profile. Fields firstName, lastName, username, gender (strings). | |
| video | No | Read only when type starts with video. Fields actor, director, writer, duration, releaseDate, series (strings) and tag (string array). | |
| music | No | Read only when type starts with music. Fields duration, album, musician (strings). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| success | No | True when the operation completed. | |
| operation | No | Echo of the requested operation (generate or presets). | |
| result | No | For generate: html (the assembled meta-tag block string), warnings (array of advisory strings), and preview (object with title, description, image, siteName, host derived from og url). For presets: a presets array of example input records. |