ethercreative / seo

SEO utilities including a unique field type, sitemap & redirect manager
MIT License
269 stars 96 forks source link

images from twitter/facebook also in Linkedin #370

Open pixeldeluxe opened 3 years ago

pixeldeluxe commented 3 years ago

Description

When my client is filling in the images for Twitter and Facebook, this will not appear in LinkedIn. Is there a way to when a user shares a link of a page in LinkedIn that also a image will appear?

Thanks in advance.

Steps to reproduce

1. 2.

Additional info

alexjcollins commented 3 years ago

@pixeldeluxe LinkedIn uses Facebook's Open Graph tags, so whatever you add to the Facebook section of the SEO field should show.

Are you including the meta via {% hook "seo" %} in your templates?

If you are. look out for these tags in your source:

<meta property='og:title' content='Title of the article'/>
<meta property='og:image' content='//media.example.com/ 1234567.jpg'/>
<meta property='og:description' content='Description that will show in the preview'/>
<meta property='og:url' content='//www.example.com/URL of the article'/>

If you can't see them, then there might be an issue with how you've implemented the SEO plugin in your templates.

yanickrecher commented 3 years ago

@alexjcollins i have the same problem. {% hook "seo" %} is in the template.

The SEO Field is added to the sections entryType and the Fields in the SEO part from the plugin for facebook are filed with a image, description and a title, but the result are as follow:

<title>[STAGE] Careers - ......</title>
<meta name="description" content="">

<meta property="fb:app_id" content="">
<meta property="og:url" content="https://stage........com/careers">
<meta property="og:type" content="website">
<meta property="og:title" content="[STAGE] Careers - ........">

<meta property="og:image" content="">
      <meta property="og:image:width" content="1200">
<meta property="og:image:height" content="630">
<meta property="og:description" content="">
<meta property="og:site_name" content="Sitename">
<meta property="og:locale" content="en">
<meta property="og:locale:alternate" content="en">
<meta property="og:locale:alternate" content="zh">

<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:site" content="">
<meta name="twitter:url" content="https://stage........com/careers">
<meta name="twitter:title" content="[STAGE] Careers - .......">
<meta name="twitter:description" content="">
<meta name="twitter:image" content="">

you see the dimension of a image is set, but no url to the image.

Craft Pro 3.7.13 PHP version : 8.0.10 SEO Plugin-version: 3.7.4