Repository navigation
Open Graph Protocol (OGP) 2.1.0
OGP 2.1.0 improves social metadata generation for Geeklog, with better support for rewritten topic URLs, SEO titles, and article descriptions.
This release builds on OGP 2.0.0 while preserving compatibility with existing installations and third-party metadata providers.
What's New
Improved Topic Detection
- Use native Geeklog functions (
TOPIC_currentTopic()andTOPIC_getUrl()) instead of relying on legacy URL pattern matching. - Support rewritten topic URLs such as
/index.php/topic/General. - Prefer the SEO title stored in
topics.title, falling back totopics.topicwhen unavailable. - Preserve topic-specific meta descriptions and existing access controls.
Better Article Descriptions
- Introduce
OGP_articleFallbackDescription()for automatically generated social descriptions. - Remove HTML markup and residual autotags.
- Decode HTML entities and normalize whitespace.
- Limit fallback descriptions to approximately 180 characters at word boundaries.
- Preserve explicitly configured SEO meta descriptions without truncation.
Social Metadata Compatibility
- Maintain Open Graph and Twitter/X Card generation.
- Preserve support for article images, image dimensions, and default social images.
- Keep
OGP_registerSocialMetadata()as the preferred interface for content plugins supplying their own metadata. - Maintain backward compatibility when no metadata provider is registered.
Compatibility
- Minimum Geeklog version: 1.6.0
- Minimum PHP version: 5.6.4
- Tested environment: Geeklog 2.2.2
- No new plugin dependencies.
Upgrade
Upgrading from OGP 2.0.0 to 2.1.0 is supported through Geeklog's standard plugin upgrade process.
No database schema changes or configuration migration are required.
The upgrade from 2.0.0 has been successfully tested.
Validation
- GitHub Actions build and validation completed successfully.
- Distribution archive and SHA-256 checksum generated.
- Rewritten topic URLs tested successfully.
- Topic SEO titles and descriptions verified.
- Article Open Graph and Twitter/X metadata verified.
- Social images and dimensions verified.
- No duplicate Open Graph tags observed in tested pages.
Download
Release archive: ogp_2.1.0_1.6.0.zip
The archive includes the installable Geeklog plugin and is accompanied by a SHA-256 checksum file.
Notes
OGP remains focused on centralized social metadata generation. Content plugins retain responsibility for their canonical URLs, permissions, and structured data.
This release does not restore the legacy Facebook Like or Comments widgets removed in OGP 2.0.0.