Make social buttons show product picture+details ?

Questions around the TYPO3 integration and plugins
Forum rules
Always add your TYPO3, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
joakim
Posts: 16
Joined: 28 Jan 2016, 09:38

Make social buttons show product picture+details ?

Post by joakim » 02 Feb 2016, 11:24

Is it possible to make social buttons set OpenGraph properties with product details?
So they share product picture + details instead of general page details.

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

Re: Make social buttons show product picture+details ?

Post by aimeos » 02 Feb 2016, 11:29

joakim wrote:Is it possible to make social buttons set OpenGraph properties with product details?
So they share product picture + details instead of general page details.
It's currently not possible to share details but you can add the URL to the product picture:
https://aimeos.org/docs/Configuration/C ... l/facebook

What product details do you want to hand over?
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

joakim
Posts: 16
Joined: 28 Jan 2016, 09:38

Re: Make social buttons show product picture+details ?

Post by joakim » 02 Feb 2016, 13:27

aimeos wrote:
joakim wrote:Is it possible to make social buttons set OpenGraph properties with product details?
So they share product picture + details instead of general page details.
It's currently not possible to share details but you can add the URL to the product picture:
https://aimeos.org/docs/Configuration/C ... l/facebook

What product details do you want to hand over?
I would like to use product title as og:title, product description as og:description and product image as og:image

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

Re: Make social buttons show product picture+details ?

Post by aimeos » 02 Feb 2016, 13:51

joakim wrote:I would like to use product title as og:title, product description as og:description and product image as og:image
The URL, product name and product image are already available as parameter for the URLs provided og:title and og:description can be handed over as URL GET parameters: https://aimeos.org/docs/Configuration/C ... l/facebook
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

User avatar
Metalics
Advanced
Posts: 103
Joined: 13 Jul 2015, 23:59

Re: Make social buttons show product picture+details ?

Post by Metalics » 02 Feb 2016, 14:48

joakim wrote: I would like to use product title as og:title, product description as og:description and product image as og:image
If you are using another tool suçh as "AddThis" or "ShareThis", you can add the following line in layouts/catalog/detail -- header-default.html to use og:image

<?php foreach( $this->detailProductItem->getRefItems( 'media', 'default', 'default' ) as $mediaItem ) : ?>
<meta property="og:image" content="http://www.YOURDOMAIN.com/<?php echo $this->content( $mediaItem->getUrl() ); ?>" />
<?php endforeach; ?>

Post Reply