-
Notifications
You must be signed in to change notification settings - Fork 26.1k
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
Google+ Sharing button ignores OpenGraph info #153
Comments
Not entirely sure what's going on. As far as I can tell the theme is doing everything right as per Google.
Which are included in the
Not sure why Google is ignoring it in the snippet. I tested sharing one of theme's demo pages on Google+ and it pulls in the feature image, but seems to use the author name as page title and doesn't add the description. No idea why it's doing that because the OG data seems accurate to me. |
Hmmm so it's not just my site then. I'll keep looking into it as well. |
Possible solution would be to update the post/page layouts to include schema.org microdata to help identify what content is what. Back in the day I included a lot of these tags in the markup but took them out because it over complicated things and it didn't really fit all use cases. Probably wouldn't be too hard for you to add it to your own fork if that's something you're comfortable doing. |
Hmm I tried adding these tags to _includes/_open-graph.html but didn't see any changes in Google+'s behavior
|
@mmistakes could this issue be due to the aspect ratio of the image presented to Google+? https://developers.google.com/+/web/snippet/article-rendering |
Could be. There's nothing stopping you from using a taller image if you On Mon, Jun 22, 2015 at 10:16 AM, Matthew Ahrenstein <
|
I might try and do that. I'm attempting to edit the Schema stuff back in now. |
Hmm even with a different image most of the articles seem to just display the author info. |
I'm out of ideas. You could try running a page through their structured I've never worried much about G+ since no one uses the thing ;-) On Mon, Jun 22, 2015 at 10:39 AM, Matthew Ahrenstein <
|
Hmm the only structure that shows there is Person. LOL most of my visitors use G+ primarily it turns out. (Including myself) |
One other thing that makes testing a royal pain. If G+ is anything like Twitter and Facebook it caches the content used for sharing. It's entirely possible that any of the many changes you made fixed it, but if you're testing by sharing the same URL over and over again it's going to show the cached version no matter what you do. I don't know how long it holds onto the cache or if there is a way to force it to use the new content on page. Might be worth looking into that just in case you partially fixed it when adding schema.org markup or using a different OG image. |
Hmmm I wonder if that could be a problem. I moved to Jekyll/Minimal Thanks! -Matthew On Mon, Jun 22, 2015 at 11:13 AM, Michael Rose [email protected]
|
My quick look doesn't seem like Google has an easy way to force the sharing Facebook's tool seems way more useful. On Mon, Jun 22, 2015 at 11:16 AM, Matthew Ahrenstein <
|
Oh Google, why must you make things difficult? :/ I'm going to give it some time for them to crawl the new site. Web master tools still shows the old home page on the non-www URL, so maybe they just haven't noticed the changes yet. |
That's something different. When you share a URL thru Google+ it pulls Facebook I'm pretty sure has a way to force it to use the lastest version On Mon, Jun 22, 2015 at 11:25 AM, Matthew Ahrenstein <
|
Oh I see. I've clicked the share button a few times, but never actually -Matthew On Mon, Jun 22, 2015 at 11:33 AM, Michael Rose [email protected]
|
That's probably enough for it to pull the page and cache the content for sharing regardless if you actually shared it or not. Try a page you haven't done that with to double check. Other than that this is just Google being Google. I've never had much luck with schema or microformats or microdata. Anytime I think I have it right something else breaks, which is a big reason I ripped most of it out of the theme leaving it up to someone else who has an actual clue. Open Graph is Facebooks baby which could explain why G doesn't necessarily pickup things all the time. |
I tested reverting some of the changes from this commit e2e01bd I made a few modifications. I pushed it to the live site, and I'm going to let Google index over the next couple of days and then test sharing. If you're interested, an example URL would be https://www.ahrenstein.com/blog/using-simple-bank/ Thanks |
Actually that post seems to be the one and only post that was working -Matthew On Mon, Jun 22, 2015 at 1:19 PM, Michael Rose [email protected]
|
There were a couple other older posts that seemed to work. I bet they were On Mon, Jun 22, 2015 at 1:32 PM, Matthew Ahrenstein <
|
Oh that's interesting. |
I fixed it. I added this code the the if statements in the top 5 lines of the files in _layouts
I also modified the _includes/_open-graph.hrml file and added this code at the top of the file
Then the magic fix that may or may not make the above changes necessary is that Google+ will ignore most/all of the meta data randomly if the image it grabs is outside a certain aspect ratio. I had a 19:5 aspect ratio at 1900x500 pixels. Once I changed it to a 5:2 ratio at 1900x760 pixels the sharing seems to work on all articles now. If you want to verify just the image size change on the site you tested with, and let me know if that works, I'd greatly appreciate it. Avoiding Schema changes would be nice if possible. Thanks for all the help! |
I tested it without the Schema.org stuff. Doesn't always work. I can create a pull request for that if you want me to add it. I made just enough changes to fix the Google+ snippet without screwing with other social network sharing. |
Merge request #154 will fix this |
…tton-text Change button copy on theme preview
Just launched my site with this theme last night. Everything is fantastic except that sharing with the Google+ button seems to ignore all of the OpenGraph info so the shared link reveals nothing other than the site name. Is there a good way to fix this?
Thanks
The text was updated successfully, but these errors were encountered: