Facebook sharing button not get images

Help for integrating the Laravel package
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
h2jose
Posts: 8
Joined: 04 Jun 2018, 14:45

Facebook sharing button not get images

Post by h2jose » 15 Feb 2019, 12:34

Hi, i can't resolve to get the image when click on facebook sharing, i get same demo issue, only text:

https://www.facebook.com/sharer.php?u=h ... on_article

i updated the social facebook link by, from docs:

https://www.facebook.com/sharer.php?u=% ... picture=%3$

but this not resolve this issue. I get only the page title and detail sumary, the first image is not present.

Please, can you help me, What can i do?
thanks

User avatar
aimeos
Administrator
Posts: 7873
Joined: 01 Jan 1970, 00:00

Re: Facebook sharing button not get images

Post by aimeos » 15 Feb 2019, 14:03

Facebook moved to OpenGraph data in the <head> section of the page and the sharer URLs don't support them any more. You have to add the "<og:...>" to the header which you can do in here: https://github.com/aimeos/ai-client-htm ... andard.php

We would love if you could create a pull request on Github with your changes :-)
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply