like facebook attach link,
when i share a link -> facebook fetch the html page
when i share a image link -> facebook fetch the image
so at server side (.NET, C#), how can i distinguish a html link or image link
any help?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You could try a couple things:
\.(png|jpg|gif|bmp)$Also, check answers to this question:
Regex to check if valid URL that ends in .jpg, .png, or .gif
The most recent answer there mentions a library called FastImage.