When using the Open Graph meta tag submodule of the Meta Tags module combined with Facebook Comments Box, you get two og:url and og:title meta tags. I haven't tested but suspect the same would happen using the Open Graph Meta Tag module.
This causes an error on the Facebook comments.
Example of the error from Facebook:
Object at URL 'http://www.example.com/article/xyz' of type 'article' is invalid because it specifies multiple 'og:url' values
Is there a way you could add the option to exclude the og meta tags for when you have another module that handles them.
| Comment | File | Size | Author |
|---|---|---|---|
| #11 | facebook_comments_box-fix-conflicts-with-metatag-module-1507628-8232469.patch | 3.82 KB | leon kessler |
Comments
Comment #1
lexfunk commentedThanks for posting. We will weigh our options, having the option to exclude tags is a good idea.
Comment #2
terlikk commentedSame problem here. Still wating for the solution...
Comment #3
ioanmar commentedThe same happens with Open Graph Meta Tag module.
Multiple og:url values are generated.
Any plans on fixing this?
Comment #4
ioanmar commentedComment #5
JBodkin commentedAgreed, this needs to be optional
Comment #6
quercus020 commentedAlso agreed. I have the same issue with Open Graph Meta Tag module. I'm need to be able to specify the preview image (og:image) which I can do with Open Graph Meta Tag module but the Facebook Comments Box always selects the logo.png.
Comment #7
studio ml commentedA simple hack is to put this line in coment:
// drupal_add_html_head($metafcb, 'meta-fcb');
in the file:
facebook_comments_box.module
Comment #8
cwithout commentedA temporary solution that doesn't involve hacking the module is to use hook_html_head_alter(). Obviously, this is still not ideal, and the best solution is for the module to make these tags optional.
Comment #9
leonano commented//$markup .= '<meta property="og:image" content="' . theme_get_setting('logo') . '"/>';Comment #10
leon kessler commentedOkay seems pretty adamant from this issue that if metatags opengraph is enabled, all handling of meta tags should be left to this module.
Uploading patch...
Comment #11
leon kessler commentedComment #12
leon kessler commentedComment #13
markkus69 commentedHi
I'm having the same issue on 7.x-1.1 version.
And please someone help me. How to apply this patch?
I'm new on drupal and i'm a lot of days triyng ow to figure out this problem.
Comment #14
leon kessler commentedFrom the command line, run this from the module folder (with the patch file copied inside)
$ patch -p1 < facebook_comments_box-fix-conflicts-with-metatag-module-1507628-8232469.patchMore info on applying patchs here: https://drupal.org/patch/apply
I've just run into this issue again on another site! :-(
Can we get this patch into the module?
markkus69 if you get this working and tested, can you mark the ticket as "reviewed and tested by the community", thanks.
Comment #15
marty.true commentedThis issue is also happening on the Facebook Comments module, so likely similar code causing the issue.