Topic-icon How to add an image for sharing.

Active Subscriptions:

None
9 years 4 months ago #49712 by nikkra
When sharing FB I would like to point to an image for articles that doesnt have one. I often have just a Youtube link or a Jumi-iframe. I tryed with the open Graph code, but it diddnt work.
Like this:
"Final i Sydney och andra benet ut i Volvo

Tema Brunel seglade först in Abu Dhabi och Morgan Larsson knep den extrema seriesegern för katamaranerna utanför operahuset i Sydney. Välkommen till svenska Destopnews.
{SCOpenGraph image=http://www.sittbrunnen.se/images/vor/dtn52.jpg}"

Did I do it wrong, or is there Another way?

Niklas
The topic has been locked.
Support Specialist
9 years 4 months ago #49714 by mel
Niklas,

That looks like the correct way to do it with the Open Graph tag. However, I tried that image link in a browser and get Object not found. Please verify that your image link is correct.

-Melissa
The topic has been locked.
Active Subscriptions:

None
9 years 4 months ago #49716 by nikkra
Image link fixed
www.sittbrunnen.se/images/stories/vor/dtn52.jpg

but still not in the Like or Share box.

Niklas
The topic has been locked.
Support Specialist
9 years 4 months ago #49717 by mel
Since you have just added the Open Graph tag to your pages, you will either need to wait for Facebook to rescan all of your pages or you can manually re-scrape the pages you want to test. You can do this manually at our socialdebug.com site or using Facebook's Open Graph Debugger at developers.facebook.com/tools/debug/og/object/

If the preview is still incorrect after re-scraping, please let me know.

-Melissa
The topic has been locked.
Active Subscriptions:

None
9 years 4 months ago #49718 by nikkra
Yes, that did it. Does it mean I have to log in to FB debug and ask it for scraping every time I ad a new OG image?

Niklas
The topic has been locked.
Active Subscriptions:

None
9 years 4 months ago #49719 by nikkra
Oh no, it just showed the right image in the FB debug site, not when pushing share or like on my page.
/niklas
The topic has been locked.
Support Specialist
9 years 4 months ago #49721 by mel
Could you give me URL so that I can check it out?
The topic has been locked.
Active Subscriptions:

None
9 years 4 months ago #49746 by nikkra
It now looks ok on the FB debug page, but not when using it on the frontpage.
File Attachment:


File Attachment:
The topic has been locked.
Support Specialist
9 years 4 months ago #49748 by mel
It looks like your frontpage is a category layout, so each of the like buttons on the front page are unique and only apply to one article with a unique URL, not to the frontpage as a whole.

The URL of the article you're attempting to share in the above screenshot is sittbrunnen.se/segling-79/tavlingar/1090-seglingsuppdatering-52 and there is no og:image on that page. This is why nothing is in the preview.

If you scroll down to the next item, the preview is correct because there is an og:image tag.
File Attachment:
The topic has been locked.