nican VIP
Total posts: 392
30 Июль 2014 13:55

I am sure this issue has been already covered somewhere in the forum, but I can't find were. I noticed that when I share a record on facebook, Facebook can't find any image to associate with the record itself.

eg try to share this url www.sarteanoliving.it/it/1/voce/35-news-e-eventi/641-civitas-infernalis

or try it in th efacebook debuggger https://developers.facebook.com/tools/debug/og/object?q=www.sarteanoliving.it %2Fit%2F1%2Fvoce%2F35-news-e-eventi%2F641-civitas-infernalis

I was wondering if it's somehow possible to automatically insert the og:image tag in every cobalt record, or if you know any other solution to this issue.

Thank you

Последние изменения: 01 Авг 2014


nican VIP
Total posts: 392
30 Июль 2014 14:03

Ok I found a solution here http://www.mintjoomla.com/support/community-forum/user-item/1453-jeff/48-cobalt-8/3025-facebook-open-graph-tags-with-cobalt-8.html

I modified the full record template according to the above suggestion: now I can correctly see the fb og tags in the source code of the page, but fb is still unable to see them and share the image correctly... maybe it's just a matter of waiting some hours.

anyway let me know if you know any other solutions to this issue


Jeff VIP
Total posts: 745
01 Авг 2014 01:40

Did you insert the correct field-id for your image? Unless your image has field-id 12, you need to alter this line accordingly: $dom->loadHTML($item->fields_by_id[12]->result);// Replace 12 with your image ID

Работает на Cobalt