Portal Engine Questions on portal engine and web parts.
Version 6.x > Portal Engine > <og:image> Facebook warning with image url /getattachment/... View modes: 
User avatar
Member
Member
guillaume.marquilly-tv5monde - 8/29/2013 11:23:32 PM
   
<og:image> Facebook warning with image url /getattachment/...

Hello !

So I developped a webpart in order to generate the Facebook opengraph with multiple cases, depending on different content types.

I encounter a warning with the og:image, which contains the url to the image, and the result is that the thumbnail is never generated when I share a page of my website.

I was guessing if the type of link that I use is not the cause of the issue:

/getattachement/0db61d87-a284-4624-9a9b-1af6178d6c7a

I read some articles about the subject, and people advice to always use square picture of 200x200px minimum (what I did by adding a ?width=200&height=200)

Could it be possible that facebook does not like images rendered without an extension?

I also tried the url /getattachement/0db61d87-a284-4624-9a9b-1af6178d6c7a/test.jpg which generate the same picture in order to cheat the facebook debugguer with a url finishing by .jpg, but still the warning about the picture size.

Anyone has already encountered this issue and have some clues?

I know it is not specific to Kentico but perhaps a Kentico developer has already encountered this kind of issue too.

Thank you

User avatar
Kentico Support
Kentico Support
kentico_romank - 8/31/2013 6:05:45 AM
   
RE:<og:image> Facebook warning with image url /getattachment/...
Hi,

At first I have to say that I have never encountered error like this. I tried to find some information on Google, and I believe that you are refering in your text to this page http://stackoverflow.com/questions/10346703/facebook-does-not-load-image-from-ogimage, right? But there is also comment, that Facebook might cache that data, so you will have to wait a while (day or more?) until the facebook loads the data again. I dont know, but it might be the issue.

Best Regards,
Roman Konicek

User avatar
Member
Member
guillaume.marquilly-tv5monde - 9/3/2013 12:43:24 AM
   
RE:<og:image> Facebook warning with image url /getattachment/...
Hey Roman, thank you for your answer.

After a few hours and using the debugguer tool from facebook, I finally was able to display some pictures using the Like button.

So facebook can handle pictures from Kentico (with the getattachment link)

I still have an other issue when I try to share the link directly in the facebook feed, normally Facebook parse the page at the url location to retrieve the pictures from the opengraph or the first picture he can find in the structure. In my case he never displays the picture.

I will continue my investigation and give an answer if I find something!

Thank you for your kind help.

User avatar
Kentico Support
Kentico Support
kentico_romank - 9/25/2013 1:48:45 AM
   
RE:<og:image> Facebook warning with image url /getattachment/...
Hi,

Thank you for your detailed reply and clarification that Facebook can handle pictures from Kentico.

As for the other issue, could you please sent me this issue documented with screen shots at support@kentico.com? I need more information in order to investigate this issue further.

Best Regards,
Roman Konicek

User avatar
Member
Member
guillaume.marquilly-tv5monde - 11/20/2013 9:25:05 PM
   
RE:<og:image> Facebook warning with image url /getattachment/...
Hello everyone,

Sorry for the delay, but I think that it can interest some people so I will give my advices concerning the facebook share.

I finally found a solution by following these rules:

- Always use square pictures of at least 200 x 200 px

- Take care about the option Force SSL, indeed Kentico perform a redirection when this option is checked to https. So if the link that you want to share is not https, the redirection can be blocking when facebook try to cache the opengraph metadata.

- Multilingual: if the language parameter is not included in the url setup in the facebook button, facebook can't properly retrieve the data and the metadata does not appear in the thumbnails