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

nicholasThompson’s picture

Status: Active » Postponed (maintainer needs more info)

Can you please provide an example URL which I will try to share to replicate the issue. I cant see why this would happen...

HS’s picture

Thank you for the response Try sharing this page, instead of node title it's the site url thats being pulled.

nicholasThompson’s picture

That'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...)

HS’s picture

@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!

nicholasThompson’s picture

Heh 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.

HS’s picture

Thank you for the response.

You're referring to these yeah?

<html xmlns="http://www.w3.org/1999/xhtml">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2008/fbml">

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.

HS’s picture

@nicholas

You were totally right! It turned out that I didn't need both the elements there! Thank you so much for your help.

HS’s picture

OK. 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?