Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When I attempt to share an item on facebook only the site url is being pulled instead of title. The teaser displays correctly. Anyone else experience this?
Comments
Comment #1
nicholasThompsonCan you please provide an example URL which I will try to share to replicate the issue. I cant see why this would happen...
Comment #2
HS CreditAttribution: HS commentedThank you for the response Try sharing this page, instead of node title it's the site url thats being pulled.
Comment #3
nicholasThompsonThat's really odd... Checkout my blog and try sharing something...
http://www.thingy-ma-jig.co.uk/
Note how it picks up the <title> from the target page that's being shared (as opposed to the node title).
The only thing I can see on your site which MIGHT effect it is your invalid markup (you have two <html> elements...)
Comment #4
HS CreditAttribution: HS commented@nicholasThompson,
Thank you for responding. I am newb can you point to where I have the two elements? I'll try removing it and see if it works.
Thanks!
Comment #5
nicholasThompsonHeh ok...
On your example URL, take a look at the source for the page (shortcut in firefox is Apple+U... Or Ctrl+U for Windows I think). Note at the top of the page, under the doctype, you have 2 elements.
Comment #6
HS CreditAttribution: HS commentedThank you for the response.
You're referring to these yeah?
The second line is utilised for Facebook applications to render Facebook's FBML. The issue existed before adding that snippet in unfortunately.
It's not an issue with the theme either as the theme developer pointed me to his site where I could share items on FB with no issues.
Comment #7
HS CreditAttribution: HS commented@nicholas
You were totally right! It turned out that I didn't need both the elements there! Thank you so much for your help.
Comment #8
HS CreditAttribution: HS commentedOK. That didn't fix it. It's back to the way it was. For example try sharing this page on Facebook.
The node title nor teaser appear.
I have page compression enabled. Do you guys reckon it has anything to do with that?