sur950 / any_link_preview

A flutter Plugin/Package to show the preview of any web link that starts with HTTP/HTTPS. Mostly useful for application that had chat.
MIT License
75 stars 75 forks source link

Twitter Links Not Loading with AnyLinkPreview.getMetadata #60

Closed kornha closed 7 months ago

kornha commented 1 year ago
final url = await reader.readValue(Formats.uri);

Metadata? metadata = url == null
                ? null
                : await AnyLinkPreview.getMetadata(link: url.uri.toString());

flutter: AnyLinkPreview - Error in https://twitter.com/stats_feed/status/1705225138495513032?s=20 response (ClientException: Redirect loop detected, uri=/stats_feed/status/1705225138495513032?s=20)

is always returning null for Twitter cards. Is this expected?

other websites works.

Twitter links work with this lib: https://pub.dev/packages/ogp_data_extract Might it be useful to merge their functionality in?

sur950 commented 7 months ago

Hi,

I can see the above-mentioned URL is working fine. Screenshot_1712583492

However, I suggest re-testing this in the 3.0.2 version & reopening the ticket if the issue persists. Thanks-you!