Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Just wondering where this is going?
What are the first steps?
Comment | File | Size | Author |
---|---|---|---|
#33 | og_meta_tags.tar_.gz | 7.23 KB | toomanypets |
#17 | open_graph.zip | 4.96 KB | egomac |
Comments
Comment #1
chawl CreditAttribution: chawl commentedsubs
Comment #2
elliotttf CreditAttribution: elliotttf commentedI'd also like to know. I need to implement this feature for a few sites I'm working on and would rather no redo someone else's work. If you need help working on this I'd be more than happy to lend a hand.
Comment #3
Carlos Miranda Levy CreditAttribution: Carlos Miranda Levy commentedI'm willing to help, too.
Comment #4
scor CreditAttribution: scor commentedI started something at http://github.com/scor/opengraphprotocol
Comment #5
Carlos Miranda Levy CreditAttribution: Carlos Miranda Levy commentedTook a look there.
I see you started work on D7 module.
I'll try to port to D6 or collaborate on both.
Comment #6
egomac CreditAttribution: egomac commentedAny updates on this?
Comment #7
John Tolhurst CreditAttribution: John Tolhurst commentedInterested, this is an important module for injecting some content into social networking activities, in addition to "Hey everybody, I'm eating jam toast".
Comment #8
John Tolhurst CreditAttribution: John Tolhurst commentedAnybody interested in joining with me to place a bounty on this module?
Comment #9
John Tolhurst CreditAttribution: John Tolhurst commentedWhat is this about?
So much of social networking is junk information, 'jam toast' level communication.
What opengraph offers is a method for turning a webpage into a smallish icon, so it can be shared around neatly. Kind of like exchanging football cards among friends.
This is really a cool tool for websites that have cool unique content. I think its an excellent mode for igniting viral marketing patterns.
There is a lot of goodwill out there, people who are happy and interested to share what they think is useful new stuff. If we can facilitate this happening on drupal sites, it will be a Good Thing.
Comment #10
8bitwright CreditAttribution: 8bitwright commentedThis module would be very useful to me.
How can I help?
Comment #11
Carlos Miranda Levy CreditAttribution: Carlos Miranda Levy commentedI'm willing to participate in bounty and even do some coding.
Comment #12
not_Dries_Buytaert CreditAttribution: not_Dries_Buytaert commentedSubscribing. General descriptions of the 'Open Graph protocol' which could be added to the project's webpage:
Quote from http://opengraphprotocol.org/
Quote from http://developers.facebook.com/docs/opengraph
Comment #13
not_Dries_Buytaert CreditAttribution: not_Dries_Buytaert commentedThe module should at least add following attributes to the html-tag of each webpage:
xmlns:og="http://opengraphprotocol.org/schema/" xmlns:fb="http://www.facebook.com/2008/fbml"
However, in D6.17 the html-tag is generated by the theme specific 'page.tpl.php' file. The php code which does this for the Garland theme is on line 5:
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php print $language->language ?>" lang="<?php print $language->language ?>" dir="<?php print $language->dir ?>">
The meta-tags (within the head-tag) could be added with modules like: http://drupal.org/node/532278
Comment #14
etaroza CreditAttribution: etaroza commentedSo let's get started with it!
Comment #15
not_Dries_Buytaert CreditAttribution: not_Dries_Buytaert commentedAs I explained in my previous post #13, it is impossible to implement this module (i.e. without changing themes individually).
The 'page.tpl.php' file is missing a $html variable: http://api.drupal.org/api/drupal/modules--system--page.tpl.php
Personally, I can't believe this (such flexibility) hasn't been a design principle for Drupal from the beginning, anyway.
I have just submitted a feature request for the theming system of Drupal 6.x to solve this: http://drupal.org/node/843528
AFAIK, development of this 'Open graph' module can continue, after that request has been implemented.
Perhaps a Facebook-developer is willing to make Drupal compatible with Facebook.
So, I posted this topic: http://forum.developers.facebook.com/viewtopic.php?pid=242635#p242635
Comment #16
etaroza CreditAttribution: etaroza commentedYeah, when I looked at scor's module for D7: http://github.com/scor/opengraphprotocol/blob/master/opengraphprotocol.m... it seems so straightforward to use drupal_add_html_head().
I think that even though you have to mess with the theme a bit, it doesn't really mean that the module cannot be implemented. It's just a matter of documenting properly how to use it, and what to tweak in the theme.
Comment #17
egomac CreditAttribution: egomac commentedThis is a quick and dirty port to 6. And here are some things to take note:
1. Removed facebook like or any facebook-related code. As we are building a core open_graph, can we say that we build first on the core open_graph and do the facebook as a submodule of this project? It would be more organize and easier to maintain in the future
2. There are 2 places to set your configuration. The global setting is found in the default settings path and the other one is content type specific. When the setting in the content type is not defined, it falls back to the default settings.
I repeat, this is a quick and dirty port so please bear if I missed out anything.
Comment #18
not_Dries_Buytaert CreditAttribution: not_Dries_Buytaert commentedToo be bad: looks like the feature requested for D6 won't be implemented: http://drupal.org/node/843528#comment-3158938
Comment #19
egomac CreditAttribution: egomac commentedQuick one: Build the module and add an instruction on the README on how to manually add the definition in the template. I believe there are even more areas in this module's development that needs attention rather than worrying about this one.
Comment #20
stevesmename CreditAttribution: stevesmename commentedegomac,
Thank you for adding your open_graph module as an attachment. It worked well with my Facebook Like module that isn't "official" either. http://drupal.org/node/804112#comment-3123900
Comment #21
egomac CreditAttribution: egomac commentedI tried contacting the main developer but I still haven't got any response. I applied for a CVS access but was denied. It would be great if we can commit this just to get things going.
Comment #22
jghyde CreditAttribution: jghyde commentedI'd like to join the effort here Should this project be a sub_module of nodewords?
joe
Comment #23
Fr0s7 CreditAttribution: Fr0s7 commentedI agree with taroza and egomac... This can still be developed and released with proper documentation on how to implement it.
Thanks to egomac for the attachment and stevesmename and not_Dries_Buytaert for their contributions to this discussion. Nice work so far!
Somebody really needs to get a hold of victorcoder (this module's maintainer) so we can get rolling on this. Either that, or we need somebody with CVS access to start a new project and check in what we have so far.
Subscribing.
Comment #24
victorcoder CreditAttribution: victorcoder commentedHi all, sorry for the delay. A preview release for this module must be released by the end of this month.
Comment #25
j0k3z CreditAttribution: j0k3z commentedIm trying out egomac Drupal 6 port - There seems to be no way to NOT choose a type. For my site I only want one node type to be associated with facebook but the code seems to be added to all of my pages. The settings under the admin/content let me change which type but not remove that type
Also, when disabling the module the code still appears in the meta tags. I cant tell if this is a caching issue on my end or if I need to otherwise remove something in the database to remove it completely?
Comment #26
egomac CreditAttribution: egomac commented@j0k3z you might want to wait for victorcoder's official release. Like I said it was a quick and dirty port just to get things started with this module.
Comment #27
socki CreditAttribution: socki commentedThat's great news. I'd love to see what you have done with it so far.
I have a project that i'm working on which I need this functionality, it would be great if i could spend time working you to get this over the finish line rather then having to work on something else in parallel. Hope that you can get something uploaded sooner then later... I'd be happy to help work out the kinks.
Comment #28
j0k3z CreditAttribution: j0k3z commentedIt's definitely a good start - thanks for sharing.
Comment #29
mottolini CreditAttribution: mottolini commentedWondering if there is any "real" work going on this...
It's now end of september and we don't have anythimg released yet.
@victorcoder Please, we are all willing to help you, let us know how can we do it.
We don't want to wait forever and at the same time we don't want to waste our time developing something that is maybe already been developed by someone else...
Comment #30
Amarjit CreditAttribution: Amarjit commentedI am also willing to work on this. I have already created a custom module for pulling in data from Facebook using OpenGraph.
Facebook seems to be scrapping Facebook connect for Open Graph. The sooner we get this out, the sooner developers can benefit from this.
Let's get this done.
Comment #31
John Tolhurst CreditAttribution: John Tolhurst commentedI can help by offering USD100 for the solution, any others want to chip in?
Comment #32
victorcoder CreditAttribution: victorcoder commentedNo time no fun. Sorry guys but I don't have time to build up this module. I just commited the base code given by egomac just to have something in the repo.
Several people contacted me with some suggestions of already developed modules that offers this functionality and that are developed to different grades of completness.
Anyone with real interest of becoming the project owner just send your code with an explanation of what features it have to this thread, and the community would review it and vote to decide which one will be the one that will take this place.
Comment #33
toomanypets CreditAttribution: toomanypets commentedHere's a custom module we wrote for this purpose. Take the best, leave the rest...
Comment #34
hiddentao CreditAttribution: hiddentao commentedHey guys, I too had to implement the OG meta tags this for my current project too and got quite far into it before I came across this module and this page. Anyway, I decided to package up what I had and create a project page for it:
http://drupal.org/project/opengraph_meta
Ideally the Open Graph module (i.e. this one) should be the base module (similar to what modules/fb does for Facebook) and the meta tags module should be a sub-module inside it.
Comment #35
Dave ReidUm, there's not much to open graph besides the meta tags, so I don't see why it had to be made into a separate project??
Comment #36
Annie Rothenberg CreditAttribution: Annie Rothenberg commentedHi folks,
I'm not a coder or programmer at all but I was looking for a module for this and was pleased to see that work is underway! I've downloaded and tried out both the og_meta_tags module by toomanypets and the opengraph_meta module by hiddentao. I found certain aspects of each one useful and thought you might like a bit of feedback:
og_meta_tags advantages:
og_meta_tags disadvantages:
opengraph_meta advantages:
opengraph_meta disadvantages:
Right now it's most important for me to have accurate image and description tags so I'm using opengraph_meta. I figured out how to set the og:url tag in my page.tpl.php file like this: "http://mysite/
<?php print $_GET['q']; ?>"
Things I'd like to see this module do in the future:
Would it be possible to use tokens with these too? Like I said, I'm not a coder and really don't get how all of the php magic comes together. Still, it would be cool if I could set the default description tag for a content type with tokens from that content type's fields.
Well, just thought I would put all this out there. I hope it is helpful in some way and thanks so much for the work so far!
Comment #37
hiddentao CreditAttribution: hiddentao commented@Annie Rothenberg opengraph_meta does generate default values - it just doesn't populate the edit fields (but that behaviour can be changed if it would be less confusing). I hope to add more tags to it over the next month or so as the requirements come up in my project.
@Dave Reid agree that this shouldn't really be a separate project. But I wanted to have a module which was easily update-able from drupal.org.
Comment #38
g.k CreditAttribution: g.k commentedsubscribe
Comment #39
hiddentao CreditAttribution: hiddentao commentedopengraph_meta now supports setting
og:site_name
andog:type
(with default fallbacks for each content type). And the download links are working again :)Comment #40
Annie Rothenberg CreditAttribution: Annie Rothenberg commentedFantastic! Thanks so much.
Comment #41
naeluh CreditAttribution: naeluh commentedsubscribe
Comment #42
victorcoder CreditAttribution: victorcoder commented