Closed (won't fix)
Project:
Open Graph meta tags
Version:
6.x-1.5
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
5 Apr 2011 at 17:30 UTC
Updated:
10 Jul 2015 at 15:58 UTC
Jump to comment: Most recent
Comments
Comment #1
hiddentao commentedIt only displays the og:image tag if the given node has an image attached. This can be via an Image CCK field or via a HTML
imgtag in the node's body content. The latest release of this module contains the option of providing a "fallback" image to use for og:image if a node doesn't have one available. Try setting that to something and see if it works.Comment #2
hiddentao commentedComment #3
leovw commentedI am having a similar issue:
Not entirely sure whether it is an Open Graph meta tags issue or a Panels issue...
I have overridden most of my node types with panels and they do not show any of the open graph tags unless I disable the panel type and view them as plain old nodes??
Any help would be very much appreciated as getting this working is mission critical!
Comment #4
leovw commentedI am reposting so I can reopen the issue and hopefully someone can shed some light on the problems with panels...
I have overridden most of my node types with panels and they do not show any of the open graph tags unless I disable the panel type and view them as plain old nodes??
Does anybody have any idea why this may be happening?
Thanks, Leo
Comment #5
leovw commentedThis is still a problem - Currently Open Graph meta tags doesn't seem to be compatible with panels!!
I have been bugging merlinofchaos on the panels issue queue about this too and he has offered some possible solutions:
Heres the link - > http://drupal.org/node/1155930#comment-4474014
I am happy to help although my PHP is currently very basic
Thanks
Comment #6
leovw commentedI used this code which I borrowed from another issue queue which seems to do the job:
Comment #7
dccircuit commentedleovw, Where would the code in #6 go? If I add it to the .module file, I get duplicated meta-tags (without the correct og:image -- just the fallback, still)... Is it supposed to replace another function?
Thanks.
(My issue is similar to others on the page... I have used Panels to override the display of several of my node-types which have a CCK image field... When viewing without the panel override, the correct image is selected. When I enable the override, the image selected is always my "fallback" image.)
Comment #8
tararowell commentedI used this simple solution to get the og:url to show in the meta data:
In the opengraph_meta.common.inc I added a hook:
Then used a function like this to let the module know that my image was not in the body field, but in a separate CCK field:
I am certainly open to suggestions for optimizing this in any way, but it works.
HOWEVER, I still find that FB ignores the og tags sometimes!
Comment #9
clint.beacock commentedI have a panel that's loading a node from a url arugument. I ended up modifying the $vars['head'] variable using the hook_preprocess_page function in template.php.
Here's the code:
The key is using panels_get_current_page_display()
Once you load that into a variable, you can do whatever you like.
Hope this helps someone.
Comment #10
windm commentedHi there,
to be honest, I expected to get an easier solution with the module... ;-)
My "simple" idea was to define a fixed CCK-field for each content-type to be the "representing image"... I don´t want the users to decide about if to use img #1 or #2 or whatever to be the one to be handed over as the node-image. I only want to define that e.g. the CCK-field "logo" is the one for content-type "event", the CCK-field "photo1" is the one for content-type "addressbook" and so on (for approx. 10 content types).
Do I need to use the function from #8 several times for each content-type? Being not familiar with any kind of code... I also need to ask: How would that impact the code and where do I need to paste the "function"?
Apart from that, I also use Panels+Views to display the nodes... so should I better try #9??
Or better something out of #8 and #9??
Comment #11
bradjones1Marking this support. I think this would also apply to the D7 version from what I can tell.
Comment #12
mattwmc commentedNot working for me in Panels, either.
Actually it seems as if lots of modules don't work in Panels. :(
Comment #13
mattwmc commentedSo no fix?
Guess, I'll just remove the mod.
Comment #14
torotil commentedHi,
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!