Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 595
Subin Jacob Avatar asked May 09 '13 06:05

Subin Jacob


1 Answers

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" />
like image 117
Satpal Avatar answered Nov 03 '22 00:11

Satpal