-
Notifications
You must be signed in to change notification settings - Fork 35
Open
Description
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:
- Link 1: https://www.instagram.com/p/DGAn1RZoscV/?igsh=MTQzZDM1MWp4bDF4Zw==
- Link 2: https://www.instagram.com/p/DGArOSwobET/?igsh=dXVhOWkzcjMzM2Vz
- Demo Video
✅ Correct Preview:
Could you clarify why some links extract images correctly while others do not?
Metadata
Metadata
Assignees
Labels
No labels