I am making api to generate link previews when sharing from app. I first try to get og:image meta property then try for img tags.
Please suggest any solution to get a preview image from facebook URL
https://www.facebook.com/photo.php?fbid=10156532336573106&set=a.10150325145123106&type=3&eid=ARA8J7aPjJ9TMOLIhsxoU-IEDydSAIDowKzHAKb5TLidsVUz3GFNkIQY6_g4uyQ1_OhtMJO0GAq9JgHl
https://scontent.fkhi10-1.fna.fbcdn.net/v/t1.0-9/68693440_10156532336578106_7081557032720924672_n.jpg?_nc_cat=107&_nc_oc=AQkyK966KxqYD7G0m1EtR-8w8y69sV8QaPbA9_r2DHMm5wSQLlaUzBrlRYW-WMG7uic&_nc_ht=scontent.fkhi10-1.fna&oh=45473e68efe2df33d683c28a5441674f&oe=5DE19A38" /><meta property="og:url" content="https://www.facebook.com/nauman.akbar/posts/10156532339213106
Bad URL timestamp appears. Error appears on fresh links also, doesn't appear to be time related
its all because the url have some special characters please decode it. use this
System.Net.WebUtility.HtmlDecode()