Works great on nodes, but is there any way to get it to work for the home page, which for me is set to /node and so show my "news items". Also doesn't work on views pages.

Comments

el_reverend’s picture

Issue tags: +views, +facebook, +social, +network, +OpenGraph, +social networking

Good question. I was wondering about the same. I have a view that constructs summaries from our blog (as well as products, and other sections) but it does not create OpenGraph meta tags for it. What options do we have to achieve this?

hiddentao’s picture

Status: Active » Postponed (maintainer needs more info)

This is tricky. The OpenGraph spec assumes that the meta tags information pertains to a single social object, i.e. a blog post, video, image, etc. So it's hard to see how this would map to a view. Most commonly you'd want to share a single item with another site via the OpenGraph spec and not a list of items. But I could be wrong. Any thoughts?

el_reverend’s picture

Hiddentao,

I believe you are right with your view of how the OpenGraph protocol is supposed to work. Having different objects at the same URL is not intended and causes confusion.

While I would like to have this feature in order to drive traffic deeper into my site as compared to the direct traffic it will get as the result of the sharing action, I can see that this could cause problems in the long run.

What about generating the URL, Image, description from the first 'new' item in views list and creating an OG object that way?

Could the entire views page be a object by itself? What about a 'special' set of descriptors for such a page? Thoughts?

lyricnz’s picture

One of the Open Graph meta-types is "website", so it seems like a legitimate thing to want to put on the front page.

jerry’s picture

One of the Open Graph meta-types is "website", so it seems like a legitimate thing to want to put on the front page.

That seems reasonable to me, too.

arkjoseph’s picture

Has anyone made any progress on this?

I need to add the like button for a view page with colorbox (lightbox). The view consists of several node fields. Each image and or video from each node on this gallery will have a like button.
The like button's og:url from each node will then need to be altered with php... basically, I need to customize each nodes og:url in order for me to pass a parameter to open colorbox automatically from a url.

bkosborne’s picture

While I believe it would require a significant update to the module to support "custom" OG tags per a path (that's really what this issue comes down to), I think it would be fairly easy to provide an option to add an override for the homepage itself. Many people use a view or a panel for the homepage that would benefit from this.

FYI: The OG tag for the homepage of a website should almost always be "website", and that OG type shouldn't be used on any other page on the website.

@arkjoseph, I'm confused by that. The OG tags only work one per page. If I understand correctly, you the like button to pick up different OG tags based on which like button was clicked? If you specify the proper URL for the like button (link it directly to the node), then Facebook should scan THAT page. So as long as that node page has proper OG tags, you should be good.

jospBln’s picture

I have a view as my homepage with some selected nodes.

How can I set an image for my homepage?
How can I set a text?

Right now it's pretty bad: fbLike takes the very first text, which is a teaser of a node and it takes the very first image, which is a small weather icon.

Both are not representative for the page.

torotil’s picture

Issue summary: View changes
Status: Postponed (maintainer needs more info) » Closed (won't fix)

Hi,

I'm the new maintainer of opengraph_meta. Sorry for the long silence in the issue queue.

Sadly I don't have the resources to care for the Drupal 6 version. Unless and until someone steps up to maintain it I'm therefore closing all D6 issues as WONTFIX.

Feel free to re-open the issue if it is still valid in one of the Drupal 7 branches.

Thanks!

avpaderno’s picture

Issue tags: -views, -facebook, -social, -, -OpenGraph, -social networking +social network