LokiSoft
Home
Blog
Services
Products
Showcase
About
Source
View this website's source code on GitHub
LokiSoft

We build open source software guided by Christian values and a commitment to the freedom of knowledge for everyone.

XYouTubeGitHubDiscord

Services

  • Basic Business Portal
  • Web Development
  • App Development
  • Mobile App Development
  • E-Commerce Solutions
  • Custom Software

Products

  • LokiMoney
  • LokiCloud
  • LokiDocs

Company

  • About
  • Blog
  • Contact

Legal

  • Privacy Policy
  • Terms of Service

© 2026 LokiSoft. All rights reserved.

Built with faith, passion, and ♥ for open source

Social Sharing Guide: Make Your Posts Look Amazing Everywhere

January 15, 2026
LokiSoft Team
8 min read
DocumentationTutorialSocial Media
Beginner

Social Sharing Guide

When you share a blog post on social media, platforms like Facebook, X (Twitter), LinkedIn, and others display a preview card with an image, title, and description. This guide explains how it all works and how to make your posts look great everywhere.

"A good name is more desirable than great riches; to be esteemed is better than silver or gold." — Proverbs 22:1 (NIV)


How Social Sharing Works

When someone shares a link from our site, social media platforms read special HTML tags called meta tags to build the preview card. We use two main standards:

StandardUsed ByPurpose
OpenGraphFacebook, LinkedIn, Discord, iMessage, SlackThe universal standard for rich link previews
Twitter CardsX (Twitter)Twitter's specific format for link previews
Our site automatically generates all the necessary meta tags for every page and blog post. You don't need to do anything special—just write great content!

What Gets Shared

When someone shares your blog post, here's what appears:

The Preview Card Contains:

  1. Image - Your post's cover image (or site default)
  2. Title - Your post's title
  3. Description - Your post's excerpt
  4. URL - The link to your post

Example Preview

┌─────────────────────────────────────────────┐
│ ┌─────────────────────────────────────────┐ │
│ │                                         │ │
│ │         [Your Cover Image]              │ │
│ │         1200 x 630 pixels               │ │
│ │                                         │ │
│ └─────────────────────────────────────────┘ │
│                                             │
│ lokisoft.xyz                                │
│                                             │
│ Your Post Title Here                        │
│                                             │
│ Your excerpt appears here as the            │
│ description. Keep it compelling!            │
└─────────────────────────────────────────────┘

How to Control What Gets Shared

You control social sharing through your post's frontmatter:

---
title: "Your Amazing Post Title"
excerpt: "A compelling description that makes people want to click. Keep it under 160 characters for best results."
coverImage: /your-cover-image.png
---

The Three Key Fields

FieldWhat It ControlsBest Practices
titleThe headline in the preview50-60 characters, compelling and clear
excerptThe description text150-160 characters, include a value proposition
coverImageThe preview image1200x630 pixels, PNG or JPG

Creating Great Cover Images

The cover image is the most important element for social sharing. A great image can dramatically increase clicks and engagement.

Image Requirements

PlatformRecommended SizeMinimum SizeFormat
All platforms1200 x 630 px600 x 315 pxPNG or JPG
Twitter1200 x 628 px300 x 157 pxPNG or JPG
LinkedIn1200 x 627 px200 x 200 pxPNG or JPG
Always use **1200 x 630 pixels** - this size works perfectly on all platforms. PNG for graphics/text, JPG for photos.

Cover Image Best Practices

  1. Use high contrast - Images should be readable at small sizes
  2. Include text sparingly - Some platforms crop images differently
  3. Keep important content centered - Edges may be cropped
  4. Use your brand colors - Builds recognition
  5. Avoid tiny text - Won't be readable on mobile
  6. Test on multiple platforms - Use the debugging tools below

Where to Put Cover Images

Place your cover images in the public/ folder:

public/
├── og-image.png              ← Default site image
├── your-post-cover.png       ← Custom post image
└── images/
    └── blog/
        └── my-tutorial.png   ← Organized by folder

Then reference them in frontmatter:

coverImage: /your-post-cover.png
# or
coverImage: /images/blog/my-tutorial.png

Platform-Specific Notes

Facebook

  • Uses OpenGraph tags
  • Caches images aggressively (use debugger to refresh)
  • Supports images up to 8MB
  • Will crop to 1.91:1 aspect ratio

X (Twitter)

  • Uses Twitter Card tags (falls back to OpenGraph)
  • Card type: summary_large_image (shows large preview)
  • Images must be less than 5MB
  • Supports PNG, JPG, WEBP, GIF

LinkedIn

  • Uses OpenGraph tags
  • Prefers 1200x627 but accepts 1200x630
  • Professional audience—consider the tone
  • Caches for about 7 days

Discord

  • Uses OpenGraph tags
  • Shows embed with image, title, description
  • Color-codes based on site theme
  • Very good OpenGraph support

iMessage / Messages

  • Uses OpenGraph tags
  • Shows rich link preview
  • Apple caches aggressively

Slack

  • Uses OpenGraph tags
  • Shows unfurled link preview
  • Includes site favicon

Testing Your Social Shares

Before sharing widely, test how your post looks using these official debugging tools:

Facebook Sharing Debugger

URL: developers.facebook.com/tools/debug

  1. Enter your post URL
  2. Click "Debug"
  3. Review the preview
  4. Click "Scrape Again" to refresh cached data

Twitter Card Validator

URL: cards-dev.twitter.com/validator

  1. Enter your post URL
  2. Click "Preview card"
  3. Verify image, title, and description look correct

LinkedIn Post Inspector

URL: linkedin.com/post-inspector

  1. Enter your post URL
  2. Click "Inspect"
  3. Review the preview

Meta Tags Preview Tool

URL: metatags.io

  1. Enter your post URL
  2. See previews for multiple platforms at once
  3. Great for quick checks
Social platforms cache your preview data. If you update your post's title, excerpt, or image, you'll need to use the debugging tools above to force a refresh. This can take a few minutes to propagate.

What Our Site Generates Automatically

For every blog post, our site automatically generates these meta tags:

OpenGraph Tags

<meta property="og:type" content="article" />
<meta property="og:url" content="https://lokisoft.xyz/blog/your-post" />
<meta property="og:title" content="Your Post Title" />
<meta property="og:description" content="Your post excerpt..." />
<meta property="og:image" content="https://lokisoft.xyz/your-cover.png" />
<meta property="og:image:width" content="1200" />
<meta property="og:image:height" content="630" />
<meta property="og:site_name" content="LokiSoft" />
<meta property="article:published_time" content="2026-01-15" />
<meta property="article:author" content="Your Name" />
<meta property="article:section" content="Tutorial" />
<meta property="article:tag" content="Tutorial" />

Twitter Card Tags

<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:site" content="@lokisoft" />
<meta name="twitter:creator" content="@lokisoft" />
<meta name="twitter:title" content="Your Post Title" />
<meta name="twitter:description" content="Your post excerpt..." />
<meta name="twitter:image" content="https://lokisoft.xyz/your-cover.png" />

Troubleshooting

Image Not Showing

Possible causes:

  1. Image path is wrong in frontmatter
  2. Image file doesn't exist in public/ folder
  3. Image is too large (keep under 5MB)
  4. Platform cache showing old data

Solution:

  1. Verify the file exists at the exact path
  2. Use the platform's debug tool to refresh cache
  3. Compress large images

Wrong Title or Description

Possible causes:

  1. Platform is showing cached data
  2. Frontmatter has a typo

Solution:

  1. Double-check your frontmatter
  2. Use the debug tool to force a refresh
  3. Wait a few minutes and test again

Image Looks Cropped Weird

Possible causes:

  1. Image isn't 1200x630 pixels
  2. Important content is at the edges

Solution:

  1. Resize to exactly 1200x630 pixels
  2. Keep important content in the center
  3. Test with the preview tools

Quick Reference: Frontmatter for Social Sharing

---
# Required
title: "Your Compelling Title (50-60 chars)"
excerpt: "Engaging description that makes people want to click. Include value proposition. (150-160 chars)"

# Recommended for social
coverImage: /images/your-cover-image.png

# Other fields (don't affect social sharing directly)
date: 2026-01-15
author: Your Name
categories: Category1, Category2
difficulty: 2
featured: false
---

Creating the Default Site Image

Our site uses /og-image.png as the default image when a post doesn't have a custom cover image.

Requirements for og-image.png

  • Size: 1200 x 630 pixels
  • Format: PNG (for crisp text/graphics) or JPG (for photos)
  • Location: /public/og-image.png
  • Content: Should represent LokiSoft brand

Design Suggestions

Include:

  • LokiSoft logo
  • Tagline: "Open Source Software Built on Christian Values"
  • Brand colors (neon pink, purple, blue, cyan)
  • Clean, professional design
You need to create `/public/og-image.png` for the default social sharing image. Until this file exists, posts without a custom `coverImage` will show a broken image on social platforms.

Summary Checklist

Before publishing a post you plan to share widely:

  • Title is 50-60 characters and compelling
  • Excerpt is 150-160 characters with clear value
  • Cover image is 1200x630 pixels
  • Cover image file exists in public/ folder
  • Cover image path is correct in frontmatter
  • Tested with Facebook Debugger
  • Tested with Twitter Card Validator
  • Important image content is centered (not at edges)

"Let your light shine before others, that they may see your good deeds and glorify your Father in heaven." — Matthew 5:16 (NIV)

When we share our content on social media, we have an opportunity to reach people who might benefit from what we've created. Taking the time to make our shares look professional and inviting is part of serving our audience well.


A Prayer for Your Social Presence

Lord, thank You for the gift of technology that allows us to share knowledge and encouragement with people around the world.

Help us use social media wisely and purposefully. May our posts be helpful, our interactions be gracious, and our presence online reflect Your character.

Give us wisdom to know what to share and when. Protect us from the distractions and negativity that can come with social platforms. Let our online presence be an extension of our desire to serve others.

In Jesus' name, Amen.

Spotted a bug in the matrix?

Found an error, typo, or want to improve this post? We welcome contributions! Submit a pull request or open an issue on GitHub. Or drop a comment below to start a discussion. Thanks for helping us keep the signal clean!

Comments

Share this post: