Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Meta Description not added while sharing on Linkein #184

Open
GaganGami opened this issue May 30, 2019 · 0 comments
Open

Meta Description not added while sharing on Linkein #184

GaganGami opened this issue May 30, 2019 · 0 comments

Comments

@GaganGami
Copy link

GaganGami commented May 30, 2019

When I share on facebook it works fine showing all the details like Title, Meta description and url of page properly but on LinkedIn I am not able to see Meta Description of page. Below are the meta tags which I have added in section of my page.

<meta property="og:title" content="Site Name" />
<meta name="author" content="My Name" />
<meta property="og:locale" content="en_US" />
<meta property="og:url" content="Page URL" />
<meta property="og:site_name" content="SiteName" />
<meta property="og:type" content="article" />
<meta property="og:description" content="my site description with 133 characters"/>
<meta property="og:image" content="public_image_url_path"/>
<meta property="og:image:secure_url" content="public_image_url_path" />

and for social share button I have added below line:
<%= social_share_button_tag("my site description with 133 characters", :url => public_page_url, "data-linkedin-description": "my site description with 133 characters", desc: "my site description with 133 characters", :allow_sites => %w(linkedin), :image => 'public_url_of_image') %>

NOTE
Gem Version : social-share-button (1.2.0)
Rails Version : rails (5.0.7.1)
Ruby Version : ruby-2.5.3

any suggestion? Also when I share on twitter description part seems selected in the box, can't it be normal (unselected) ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@GaganGami and others