Topic-icon Open Graph Object not working

Active Subscriptions:

None
8 years 4 months ago #56560 by altitudes
Hello

I have set an Open Graph Object "Content - Article" that you can see below, but whatever I set as parameters in this object, nothing changes on the frontend.
File Attachment:


E.g. on page www.altitudes.asso.fr/infos/newsletter (which is in "Infos" category), you can see that the og:description is not truncated to 20 characters as it should be.

Did I miss something?

Regards
The topic has been locked.
Support Specialist
8 years 4 months ago #56566 by mel
Replied by mel on topic Open Graph Object not working
Looking at the object, it appears to be set up correctly, with nothing glaringly wrong.

* Could you verify that the 'Open Graph - Content' plugin is enabled?
* Are there any other of our Open Graph plugins enabled?
* Please try setting the category to 'Uncategorized" and re-scraping the page to see if there is any effect.
* Do you have any other objects set up that may be conflicting?

-Melissa
The topic has been locked.
Active Subscriptions:

None
8 years 4 months ago #56570 by altitudes
Hello Melissa

- Yes "Open Graph - Content" plugin is enabled along with "Custom Object" and "EasyBlog" Open Graph plugins (that should not interfere ;)
- I dont have any "Uncategorized" option under "Select a category"
- I have other "Content - Article" objects set, in fact one for each article top category. Plus a "Custom - Custom" object with "URL Query Parameters" set to "option=com_kunena".
The topic has been locked.
Support Specialist
8 years 4 months ago #56573 by mel
Replied by mel on topic Open Graph Object not working
Try selecting 'Select a category' and seeing that has an effect. Also, could you temporarily disable the other objects to see if there's any change as well?
The topic has been locked.
Active Subscriptions:

None
8 years 4 months ago #56575 by altitudes
I don't have "Select a category" as a choice in the list. All I have is categories:
File Attachment:


The same when I create a new "Content - Article" object.

Unpublishing all the objects but this one did not change anything.
The topic has been locked.
Support Specialist
8 years 4 months ago #56593 by mel
Replied by mel on topic Open Graph Object not working
Looking at this issue and the other issue you have going on, something strange is going on. If possible, could you send me a private message (using envelope icon under my avatar) with credentials for FTP and for superadmin access to your backend?
The topic has been locked.
Support Specialist
8 years 4 months ago - 8 years 4 months ago #56616 by mel
Replied by mel on topic Open Graph Object not working
The change made here is what is breaking this tag. When I revert it to our original code, changes to the Open Graph object work correctly. For now, you have a choice between the correct 404 page working or Open Graph plugins working. We were concerned that the code change would break other areas, and our code has been tested on thousands of websites without problem for Open Graph plugins. We can continue to investigate this, but don't have an immediate suggestion and don't have an estimate on when we will.

[Edited to add]I reverted the code to our original code to test this error.[/url]
Last edit: 8 years 4 months ago by mel.
The topic has been locked.
Active Subscriptions:

None
8 years 4 months ago #56634 by altitudes
I must say that I had almost forgotten that I had done this code modification. I was excessively confident in the fact that it would have no impact and would be included in the next release of JFBConnect...
So now I am stuck and have to make a difficult choice between 2 issues until you are able to make a comprehensive analysis of the impacts of this code change :(

By the way, now that you have reverted this code on my site, I have another issue with "Content - Article" object and sh404SEF. The following option is not working:
File Attachment:


I tested it with sh404SEF disabled, and it is working fine. But when sh404SEF is enabled, if you choose "Title Type = Page Title", then JFBConnect keep on using the page title defined by Joomla, without taking into account that it is overridden by sh404SEF.
I don't know if the problem is in the way sh404SEF sets the page title, or in the way JFBConnect gets the value, but something is wrong somewhere!

You can test this on the same page we worked on before.
The topic has been locked.
Support Specialist
8 years 4 months ago #56640 by alzander
The two ways we get the title for the page area:
Article Title
$article->title
That's the direct title from the article as set in the content manager.

Page Title
$document = JFactory::getDocument();
$title = $document->getTitle();
That is getting the title element as set in the Joomla document. I don't know how sh404SEF sets the page title, but it seems they aren't overriding the standard Joomla document method or they are doing it after we try to read the title element.

My only suggestion is to try re-ordering the sh404SEF system plugin and the JFBConnect system plugins and see if one before the other (try both cases) fixes the issue.

Also, you mentioned "now that you have reverted this code on my site", are you saying that this isn't an issue if you re-do that code? If so, are you sure the Open Graph - Content plugin is actually working on that page? This will help narrow some things down.

Thanks,
Alex
The topic has been locked.
Support Specialist
8 years 4 months ago #56642 by alzander
I also just responded to your other post regarding the underlying incompatibility with sh404SEF and the code change they recommended.

Thanks,
Alex
The topic has been locked.