Linux 软件免费装
Banner图

Simple Open Graphs - Social Sharing, Open Graph, Twitter Cards & Rich Previews

开发者 webcodingplace
更新时间 2026年8月20日 22:52
捐献地址: 去捐款
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

facebook social sharing open graph twitter card social meta

下载

2.1 2.0

详情介绍:

Simple Open Graphs is a feather-light social metadata plugin that makes every link to your site look great on Facebook, Twitter/X, LinkedIn, WhatsApp, Discord, Slack, Pinterest, Telegram, and beyond, without the bloat of a full SEO suite. Less than 100KB on the front end. Zero database tables. Zero settings required to get started. Why Simple Open Graphs? Features Open Graph (Facebook, LinkedIn, WhatsApp, Discord, Slack, Telegram) Twitter/X Cards Site verification (one-tag-each) Automation Compatibility Developer tools Privacy Simple Open Graphs does not make external HTTP requests, does not collect telemetry, and does not add tracking scripts.

安装:

  1. Upload the plugin to wp-content/plugins/simple-open-graphs/ or install through the Plugins screen.
  2. Activate.
  3. Visit Settings → Open Graph to pick a default social image, enabled post types, and your Twitter/X handle.
  4. Edit any post - you'll see a Social Preview metabox with live cards.
That's it. Sharing your URL now produces beautiful rich previews.

屏幕截图:

  • The main Settings page - pick a default image, Twitter/X handles, Facebook App ID.
  • Verification tab for Facebook, Pinterest, Google, and Bing.
  • Compatibility tab auto-detects co-installed SEO plugins.
  • Tools tab: one-click import from Yoast, Rank Math, AIOSEO, SEOPress, and JSON settings export.

升级注意事项:

2.1 Adds auto-generated branded social images for posts without a featured image, drawn locally with no external requests. Enable it under Settings → Open Graph → Social Image. 2.0 Complete rewrite with Twitter/X Cards, live previews, importers, WooCommerce support, and SEO plugin compatibility. Your existing settings and per-post overrides are preserved automatically.

常见问题:

Do I need an SEO plugin (Yoast, Rank Math, AIOSEO) to use this?

No. Simple Open Graphs is fully standalone. It's designed for people who want excellent social previews without installing a full SEO suite.

I already have Yoast / Rank Math / AIOSEO. Will this conflict?

No. The plugin auto-detects the major SEO plugins and yields the front end to them so you never get duplicate Open Graph tags. You can still use the per-post Social Preview metabox to override their values, and run the Tools → Import to copy your existing social metadata in.

Will this slow down my site?

No. There is zero JavaScript and zero CSS loaded on the front end. The output is a small static block of <meta> tags inside <head> - typically under 1 KB. Resolved data is cached via the object cache when available.

Does this support WooCommerce products?

Yes - products emit og:type=product plus product:price:amount, product:price:currency, product:availability, and product:retailer_item_id.

What is the auto-generated social image?

When a post has no featured image, no image in its content, and no per-post override, Simple Open Graphs can paint a branded 1200×630 card from the post title (plus an optional logo and your site name) so the shared link still looks great. The image is drawn on your own server with the PHP GD extension - no external requests - and cached in your uploads folder so it's generated once and reused. Turn it on and choose your colors under Settings → Open Graph → Social Image. It requires the GD extension with FreeType/TrueType support; when that isn't available, the plugin simply falls back to your default social image.

How do I see how my page looks when shared?

Use the Tools sidebar links to the official Facebook Sharing Debugger, LinkedIn Post Inspector, X Card Validator, and Google Rich Results Test. They each fetch your page and show the rendered preview.

Can I import my settings from another SEO plugin?

Yes. Go to Settings → Open Graph → Tools, pick your source plugin, and click Run import. We support Yoast, Rank Math, All in One SEO, SEOPress, and The SEO Framework.

Is it translation ready?

Yes - Text Domain: simple-open-graphs. A .pot file is included in /languages.

Is it headless / REST friendly?

Yes. Call GET /wp-json/sog/v1/meta?url=<absolute-url> from your headless frontend to get a ready-to-render JSON payload.

Is it WP-CLI friendly?

Yes. wp sog show <post>, wp sog import <source>, wp sog reset.

Does it work with WPML / Polylang?

Yes. Each translation has its own metabox values and emits the correct og:locale automatically.

How do I customize the output?

Use filters: sog_meta_tags, sog_resolved_data, sog_enabled_post_types, sog_should_render, sog_remove_duplicate_tags. For the auto-generated card, use sog_card_style (colors/logo per post), sog_card_font_path (point to your own .ttf), and sog_card_available (force the feature on or off). Hooks documented in the plugin source.

How do I report a bug?

Open a thread on WordPress.org. Include your PHP/WP versions and which SEO plugin (if any) is active.

更新日志:

2.1 2.0 1.0