Question

Im making a private Wine travel page, and im looking on "share link" on Facebook. If i use this link golf trip and is trying to share it, it get the image fine.

But if I try the same with one of these two link, I only get the text.

Luxenbourg

But if i use the page ID it works fine Luxenbourg page id

del Garda

Why don't it take the images and show it in facebook share, when its the long URL and not the page ID.

FIX in TYPO3 ver. 6.2.x + Bootstrap 3.x.

Go to "Web -> Template" select root, select "Typoscript Object Browser". Then in CONSTANTS ROOT select config.baseURL and clear it, save and add.

config.absRefPrefix = /

to the main TS, save and clear f. test and works, THX biesior

Was it helpful?

Solution

For suggesting images for pages Facebook uses linter, you can check yourself what's wrong with your page (for some reason no images are visible for Luxemburg at all - try to purge TYPO3 cache and lint again):

https://developers.facebook.com/tools/debug/og/object?q=http%3A%2F%2Fwnf.dk%2Fvinrejser%2Ftyskland%2Fluxembourg.html

Best you can do is to install or create some extension which will help you with creating og tags it's good concept especially if you want to make your page co-working with FB on the longer run.

Edit: Weird, after closer look I think that's facebook's problem not TYPO3's, change a way of link creation, i.e. remove/comment config.baseURL from your TypoScript and add this in your TS (Setup) instead (don't forget to flush whole cache):

config.absRefPrefix = /
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top