Skip to content

Issue with Instagram Link Previews #10

@Parshwa-Mehta

Description

@Parshwa-Mehta

I used LinkPreviewAnalyzer to extract preview information from various Instagram links. However, for many links containing images, the extracted preview shows Instagram’s default image instead of the actual post image.

Code Snippet:

  Future<void> _isValidLink() async {
    final info = await LinkPreviewAnalyzer.getInfo(
      'https://www.instagram.com/p/DGAn1RZoscV/?igsh=MTQzZDM1MWp4bDF4Zw==',
      multimedia: true,
    ) as WebInfo?;
    _showImagePreview = info?.image.isEmpty ?? true;
  }

Examples:

❌ Default Image:

✅ Correct Preview:

Could you clarify why some links extract images correctly while others do not?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions