Subin Jacob Subin Jacob - 5 months ago 20
ASP.NET (C#) Question

Why facebook says my Image url is invalid?

Link to facebook debugger. Facebook share was working fine before I changed myhosting provider. Fb share now selects invalid image from this page

Answer Source

As per the Facebook's Object debugger error

Object at URL 'http://www.yoursite.com/contentspage.aspx?id=17745' of type 'article' is invalid because the given value 'thumbimage.ashx?w=100&h=100&imgid=17745' for property 'og:image:url' could not be parsed as type 'url'.

To correct it, change

<meta property="og:image" content="thumbimage.ashx?w=100&amp;h=100&amp;imgid=17745">

to

<meta property="og:image" content="http://www.yoursite.com/thumbimage.ashx?w=100&amp;h=100&amp;imgid=17745" />

Suggestion as per facebook documentation, images has to atleat 200px both dimesnsion and also add

<meta property="og:image:width" content="200" />
<meta property="og:image:height" content="200" />