Document the steps you use to generate Open Graph by recording each input, the generated protocol block, its deployment location, the delivered source, and each platform check.

A useful runbook does more than store four tags. It connects editorial intent to technical output: which page is being described, which values were entered, what the generator returned, where that block was published, and what each sharing service displayed after publication.

That chain makes later edits safer. A changed image, a moved canonical URL, a framework-generated duplicate, an inaccessible image and a cached preview have different causes, so the record should preserve both the source values and the evidence collected after deployment.

how do i document the steps i use to generate open graph
How Do I Document the Steps I Use to Generate Open Graph

Start with a page-level metadata record

The Open Graph Protocol describes a web page as a shareable graph object. The Open Graph Generator creates property-based meta elements for four basic required properties and three optional properties. It emits the required properties first in stable order, giving the runbook a predictable structure.

Record the role and source of every property instead of treating the output as an undifferentiated block:

Property Status What to document
og:title Required Names the object; record the final title.
og:type Required Classifies the object; this tool supports website and article.
og:image Required Supplies the representative visual; record the intended public image URL.
og:url Required Identifies the permanent object; record the canonical page URL.
og:description Optional Summarizes the object; record an accurate summary of the visible content.
og:site_name Optional Names the larger site associated with the object.
og:locale Optional Uses language_TERRITORY, such as en_US; this form accepts a two-letter language and territory.

Keep required and optional groups distinct. A missing required value prevents output, while an omitted optional property leaves that editorial choice out. Alternate locales and script subtags need additional protocol properties outside this focused form. Music, video, profile and other richer types need type-specific fields, so use a specialized implementation for them.

Capture the inputs before generating metadata

Record the exact title, object type, page URL and image URL before opening the generator. Then add the description, site name or locale only when the page has a clear and accurate value for them.

  • Title: Name the object with text that accurately represents the visible page.
  • Object type: Select website or article. Do not record an unsupported type in this workflow.
  • Canonical page URL: Use an absolute HTTP or HTTPS address without embedded credentials or a fragment. This value identifies the permanent object.
  • Image URL: Use another absolute, credential-free HTTP or HTTPS address that points to an image the target sharing service can crawl.
  • Optional values: Record a description, site name and locale when each adds accurate context. The locale format is language_TERRITORY, such as en_US.

The browser URL parser normalizes accepted addresses, so save both the value you entered and the normalized URL in the output. A fragment-free page URL identifies one resource across client-side anchors, while rejecting credentials avoids putting user information into public metadata.

Text is trimmed, length-bounded and rejected if it contains control characters. Attribute values are HTML-escaped exactly, including ampersands, quotes and angle brackets. The selected type is checked at output time, and a missing required field blocks generation. All work happens in the browser, so the runbook can also note that neither the page nor the image was fetched.

Generate, publish, and verify each page

  1. Create a runbook entry for one canonical page. Record the intended title, object type, page URL, image URL and optional values before opening the tool.
  2. Enter the title in the Open Graph Generator, choose website or article, and supply absolute, fragment-free HTTP or HTTPS page and image URLs. Add a description, site name or locale only when it accurately reflects the page.
  3. Generate the metadata. Check that og:title, og:type, og:image and og:url appear first, followed by any optional properties. Confirm that the elements use the property attribute rather than name and that the values remain correctly escaped.
  4. Copy the protocol-only block into the HTML head of the canonical page. Do not render it as visible text, encode the entire block again, or duplicate it through both a framework and a plugin.
  5. Publish the page and inspect the delivered source, not only the editor or template. Confirm that the intended properties are present once because build tools can reorder, overwrite or add conflicting output.
  6. Check the public page and image separately. Record whether the target sharing service can reach them and review the image response for status, content type and dimensions because the generator does not perform these checks.
  7. Use each target platform's current preview debugger or share inspector. Check crawl access, image handling and cache refresh, then save the result in the runbook.

Use a reusable runbook record

Keep the generated output and the deployment evidence together, but label each item by what it proves:

Runbook section Information to save Reason it matters
Input snapshot Entered title, selected type, source URLs, optional values and generation date Recreates source decisions and exposes URL normalization
Generated output The complete protocol-only block Preserves the exact serialization, property order and escaping
Deployment Canonical URL, template or component, and publish date Locates the implementation if the output conflicts
Delivered source The raw head excerpt around the properties Confirms what the live response contains
Image evidence Fetch result, content type, dimensions and target-service notes Covers asset conditions the generator cannot check
Platform evidence Service, tested URL, inspection time, rendered result and cache behavior Separates valid metadata from platform presentation

Store the output as a separate text artifact so reviewers can compare it with the deployed source. Form success and deployment success are different checkpoints, and a runbook should record both.

Separate protocol correctness from platform behavior

A generated block establishes protocol metadata under the tool's rules; it does not establish live delivery or final appearance.

  • The tool does not fetch either URL and cannot verify HTTP status, MIME type, dimensions, byte size, aspect ratio, redirects, robots controls, authentication or platform cache state.
  • Each sharing service applies its own image requirements and may crop images, truncate text or ignore fields.
  • A valid block can still yield an older preview because services can retain cached data or apply account-level policies.
  • The generator does not create Twitter Card metadata. Services may use some Open Graph properties as fallbacks, but service-specific tags and validation rules remain separate concerns.

The WHATWG meta element specification defines the role of meta elements in an HTML document. Keep Open Graph metadata in the head and keep protocol-specific documentation separate from assumptions about another service's preferred tags.

Capture verification evidence after publishing

After publication, compare three layers of evidence:

  • Delivered source: Confirm that the live HTML contains the intended property elements without conflicting duplicates.
  • Fetched image response: Check that the public asset returns successfully and review its content type and dimensions against the target service's requirements.
  • Live platform previews: Use the service's current debugger to see which title, description and image it actually retrieved.

For every platform, record the service name, tested URL, inspection time, whether the crawler fetched the page and image, the displayed result and any cache or refresh message. The public page must remain accessible to its crawler, and the metadata must match visible content so the preview does not misrepresent the destination.

If the source is wrong, fix the deployment before chasing a preview refresh. If the source is correct but the preview is stale, document the cache behavior and use the platform's current cache-refresh process. Build tools can reorder or overwrite properties, which is why the raw source must be part of the evidence set.

Keep the documentation current

When a page moves or changes identity, update og:url, the image, title, description and other relevant representations together. Regenerate the metadata when values change, then repeat the source, image and platform checks. Keep previous versions and a dated change note rather than overwriting the evidence, because a later editor must be able to tell what changed and which previews were reviewed.

A complete runbook lets another editor answer five questions: What did the page represent, which values were entered, what was generated, where was it deployed, and what did each platform retrieve and display? That chain documents the Open Graph workflow without treating a valid tag block as a promise of a particular social card.

For a deeper look, see How Do I Document the Steps I Use to Generate ads.txt?.