Open AureAureAure opened 4 years ago
Hi again!
If you could give me a hint to resolve this issue that would be very kind of you. That's very important for me!
Thank you again.
Hi, not sure if you can do this on your own, but you can try to check html of your blog page and see whats the id of body tag and include this string to $excluded array in jk_opengraph.php file.
protected $excluded = array( 'xipblog_single', 'your-blog-page-body-id-here', );
Thank you very much for your help! That's very kind of you. My blog's body tag id is "ybc_blog_page", so in jk_opengraph.php I put this code :
protected $excluded = array(
'xipblog_single', 'ybc_blog_page',
);
Instead of this one :
protected $excluded = array(
'xipblog_single',
);
And the problem remains... I cleared the cache and everything. That's really strange.
I managed to bypass the problem by deleting "{$tags.title}" from the og:title meta property in opengraph.tpl so that the og:title tag content becomes empty. Now Facebook is using the real og:title because the second one is empty. That's a solution but there are still two.
The value in $excluded must be the value of $this->context->controller->php_self that you get on your blog page. It might be not the same as your body id, im not sure. You can try to get that value by typing echo $this->context->controller->php_self;die;
in hookDisplayHeader() method.
I'm sorry for the delay, I got your message but couldn't try it yet. Will try to understand how to get this value. Thank you so much for your help!
Hello,
Thank you very much for this great module.
Right now I just need it for categories, so it's only enabled for categories and turned off for all other sections.
But despite this, the module interferes in my blog. It puts an "og: title" with my bland name in addition to the original "og: title" of my blog. So there are two and Facebook recognizes the one which comes from your module. This is very annoying because it puts my brand name instead of the articles titles.
I cleared my cache and used the Facebook debug too but the issue is still there. When I disable the module there's no problem.
Would you have an idea how to fix it?
Thank you very much!