My service links, specifically - the facebook link - is pulling info from a block instead of for the node type (blog entry) that it is attached to. I tried disabling the block that it is pulling from, but it still grabs that data / text instead of the blog entry text I'm trying to post to facebook. Images seem to be working fine.

Note, I moved the block that it seems to be pulling from from the right to the left yesterday - but the service links themselves are attached to every individual blog post - not the block at all.

Comments

mcri’s picture

Anyone? Still having the issue - service links embedded below individual blog posts pull text from sidebar blocks instead of blog content?

soulsolutions’s picture

Does anyone have a solutiuon to this, I am having the same problem.

jcbrew’s picture

I'm looking to add something like this to my site - but it doesn't look like there's much support for this mod. It's a shame because Facebook is really popular and we are looking to do a lot more with it in the near future. Does anyone have any suggestions on any other module that will link my drupal site's content to facebook?

devin carlson’s picture

Version: 5.x-1.1 » 6.x-1.0

I am also having this issue, especially with the facebook link as mentioned.
When I use the link to share a page, the posts content is gather from a block which is set in a region at the top of the page.
I would like to have the content gathered from within the node body itself.

devin carlson’s picture

I figured that facebook had to take the post information from somewhere.

It turns out that it uses the following tags to look where to grab data from:

<meta name="title" content="Smith hails 'unique' Wable legacy" />
<meta name="description" content="John Smith claims beautiful football is the main legacy of Akhil Wable's decade at the club. " />
<link rel="image_src" href="http://www.onjd.com/design05/images/PH2/WableAFC205.jpg" />

More information can be found at http://www.facebook.com/share_partners.php

So you need to be able to mark the node body as the "description".
I found that you can use the Meta tags module (http://drupal.org/project/nodewords) to do this.

The module allows you to, among other things, add your own description to each node or use the teaser of the page if the meta description is not set.

erikhopp’s picture

Component: Code » Documentation
Category: bug » support
Status: Active » Closed (works as designed)

I had this issue a while back and fixed it by changing my theme around such that it showed the blog post comment first on the blog full node page - rather than having the sidebar load first. The Facebook widget looks up the url you give it (the full node page) and looks for the first bit of text on the page to pull into the share widget. If you have the sidebar loading first but floated right or left, it will load sidebar content first. I think the Zen theme has been constructed such that the content loads first and the navigation, first sidebar and second sidebar load afterwards, thus negating this issue. I'd view source on the page and see what loads first. Make the content load first and fix the layout with CSS. Plus making the content load first is better anyway. Or use the description metatag as described above.

This isn't a service links issue though - that is just how Facebook works.

Hope that helps.

Erik.

GreyHawk’s picture

Is this a core setting within the module, or something that has to be done to each node...? I've tried setting it up, but keep getting the default "left column" information when trying to post a node to FB.

TheCrow’s picture

1kenthomas’s picture

Version: 6.x-1.0 » 6.x-2.x-dev
Status: Closed (works as designed) » Active

@Devin:

This technique no longer seems to work. I am re-opening the issue, as a more effective solution than "reorder content in the theme" is needed.

TheCrow’s picture

using meta tag is still the unique solution follow also the link #8, facebook has open graph metadata now!

devin carlson’s picture

Status: Active » Closed (works as designed)

As TheCrow mentioned, facebook now uses The Open Graph Protocol (http://ogp.me) for metadata.

There is now a Drupal project which allows you to add Open Graph meta tags to content.
http://drupal.org/project/opengraph_meta

I'm marking this as "works as designed" since I don't believe that Service Links should provide this functionality and an alternative exists.