Skip to content

[FEATURE] Improve Open Graph (OG) images and social sharing #98

Description

@Khushi5155

📖 Description

Currently, Edulume pages may not display properly when shared on social media platforms like Facebook, Twitter, or LinkedIn.
This issue aims to create default and section-specific Open Graph (OG) images and ensure OG meta tags are correctly implemented using the existing SEO component.


📌 Parent Issue

Part of #68 – SEO Improvements: Structured Data, Missing Pages & Performance

🎯 Scope of Work

  1. Default OG Image

    • Create a default OG image (1200×630px) with:
      • Edulume logo
      • Tagline or short description
    • Used as fallback for pages without unique OG images
    • File path suggestion: client/public/og-image.png
  2. Section-specific OG Images

    • Create unique OG images for main sections:
      • Courses
      • Roadmaps
      • Discussions
      • Resources (PDFs, Ebooks)
    • Images should reflect the section theme
  3. Implement OG tags in SEO component

    • Ensure the SEO component includes:
      • og:title
      • og:description
      • og:image
      • og:type
      • og:url
    • Use dynamic values wherever applicable (page title, description, section image)

✅ Acceptance Criteria

  • Default OG image exists and is used as fallback
  • All main sections have unique OG images
  • OG meta tags render correctly in <head> for each page
  • Social previews tested on:
    • Facebook
    • Twitter
    • LinkedIn
  • No broken images or incorrect meta tags

🛠️ Implementation Notes

  • Use the existing SEO component:
  • Images should be optimized for web (preferably WebP if supported)
  • Maintain consistent branding across OG images

🧪 Testing Checklist

  • Verify OG image displays correctly on Facebook sharing debugger
  • Verify OG image displays correctly on Twitter card validator
  • Verify LinkedIn social preview
  • Ensure fallback default OG image works for pages without custom images
  • Inspect <head> tags in browser DevTools

🏷️ Labels

frontend, seo, design, swoc2026, medium


🙌 Contribution Notes

  • Focus only on OG images and social sharing metadata
  • Do not modify structured data or page SEO metadata (handled in separate issues)
  • Document any image design or naming conventions in the PR

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions