// foreach ($images as $image) {
// self::addOpengraph('og:image', $image, true);
// }USER wrote: This issue can occur if your page is restricted for logged in users or has some sort of session logic.
mel wrote: Alright, we got things working on your site! There were two issues... one with JomSocial and the other with JFBConnect:
1) JomSocial was inserting invalid Open Graph tags into the page. We removed these incorrect tags from the /components/com_community/helpers/view.php file. The code commented out was at line 127:And then also and line 135 and 148 we removed the see_also Open Graph tags.// foreach ($images as $image) { // self::addOpengraph('og:image', $image, true); // }
All of these tags were using relative links, when they should be fully URLs including the domain. I'd recommend letting the JomSocial team that these were causing problems to see if they can be fixed in an upcoming release. Until then, if you upgrade JomSocial, you'll want to make that change on your own.
2) There was a minor bug in our Open Graph - JomSocial plugin which wasn't always generating the correct URL. That fix will be included in the next release, due out sometime over the next week or so.
Please test and let us know how it goes, but things seem to be working well for us now.
Thanks for all your patience,
Melissa
This is correct. When logged in as your user, I was able to see the correct og:type of 'salsaysabor-network:gallery' but when logged out was redirected to the login page, where the og:type was 'article'. This is what Alex was referring to above and because of the redirection, Facebook could only see the wrong Open Graph tags.This issue can occur if your page is restricted for logged in users or has some sort of session logic.
Join our newsletter to get alerts for Joomla releases, tips and tricks and extension updates.
