Topic-icon Open Graph

Active Subscriptions:

None
9 years 3 months ago #50592 by fb_721883146
Open Graph was created by fb_721883146
Hi I'm just having a problem with setting up my upload photo action correctly.

I have set up the objects and actions in both JFBC and facebook. But every time i upload the photos in my jomsocial nothing posts to facebook and i get an error in the activity log in JFBC.

ERROR:
Object at URL 'www.thewingchunsocialnetwork.xyz/index.p...lbumid=13&photoid=87' of type 'website' is invalid because a required property 'og:title' of type 'string' was not provided.

I just wonder if there's something i haven set? I've been through the documentation but still can't find where i've gone wrong.

My site is www.thewingchunsocialnetwork.xyz/

Many thanks Neil
The topic has been locked.
Support Specialist
9 years 3 months ago #50595 by alzander
Replied by alzander on topic Open Graph
When I try to go to the site you linked to above, I get a message that the SSL certificate isn't invalid. If Facebook isn't able to actually crawl the page (read it's contents), it can't see the Open Graph tags that are set. In that case, it can't see the actual Open Graph type for the page and will not work at all.

I'd suggest looking into why your SSL certificate isn't valid and fixing that so that Facebook can properly scan your page.

I hope that helps, but if you need anything else, just let us know.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
9 years 3 months ago #50640 by fb_721883146
Replied by fb_721883146 on topic Open Graph
Thanks alex, Well finally found out what it was, It was cloudflare that was causing the problem with my ssl certificate. Got that sorted now!

Next i will go and replicate what i did before and get back to you.

Many thanks Neil.
The topic has been locked.
Active Subscriptions:

None
9 years 3 months ago #50645 by fb_721883146
Replied by fb_721883146 on topic Open Graph
Just tried again and getting pretty much the same results.

For the group i'm getting this message:
Object at URL 'www.thewingchunsocialnetwork.xyz/index.p...lancashire-wing-chun' of type 'website' is invalid because a required property 'og:title' of type 'string' was not provided.

and for 1 of the photo's i got this:
Object at URL 'www.thewingchunsocialnetwork.xyz/index.p...lbumid=13&photoid=90' of type 'website' is invalid because a required property 'og:title' of type 'string' was not provided.


Not sure what i'm doing wrong. :( It worked like a dream last time i set up the open graph stuff.


Thanks neil.
The topic has been locked.
Support Specialist
9 years 3 months ago #50649 by mel
Replied by mel on topic Open Graph
I ran www.thewingchunsocialnetwork.xyz/index.php/wing-chun-network through our site socialdebug.com and didn't see an error with the og:title tag. However, there are some errors with the og:see_also tag that we've seen being caused by JomSocial not setting the tags correctly with a full URL. Could you try the following to see if it helps solve the error you are getting?

In the JomSocial file /components/com_community/helpers/head.php around line 125, can you comment out the following by adding /* and */ around the code block:
/*if ($images !== null) { 
   foreach ($images as $image) { 
      self::addOpengraph('og:image', $image, true); 
   } 
}*/

Around line 134 in the same file, comment out:
case 'website': 
self::addOpengraph('og:see_also', CRoute::_('index.php?option=com_community&view=frontpage'), true); 
self::addOpengraph('og:see_also', CRoute::_('index.php?option=com_community&view=groups&task=display'), true); 
self::addOpengraph('og:see_also', CRoute::_('index.php?option=com_community&view=photos&task=display'), true); 
self::addOpengraph('og:see_also', CRoute::_('index.php?option=com_community&view=videos&task=display'), true); 
self::addOpengraph('og:see_also', CRoute::_('index.php?option=com_community&view=events&task=display'), true); 
self::addOpengraph('og:site_name', JFactory::getConfig()->get('sitename')); 
break;

and around line 145:
case 'profile': 
self::addOpengraph('og:see_also', CRoute::_('index.php?option=com_community&view=frontpage'), true); 
self::addOpengraph('og:see_also', CRoute::_('index.php?option=com_community&view=groups&task=display'), true); 
self::addOpengraph('og:see_also', CRoute::_('index.php?option=com_community&view=photos&task=display'), true); 
self::addOpengraph('og:see_also', CRoute::_('index.php?option=com_community&view=videos&task=display'), true); 
self::addOpengraph('og:see_also', CRoute::_('index.php?option=com_community&view=events&task=display'), true); 
self::addOpengraph('og:site_name', JFactory::getConfig()->get('sitename')); 
break; 

Let us know if this helps at all.

-Melissa
The topic has been locked.
Active Subscriptions:

None
9 years 3 months ago #50652 by fb_721883146
Replied by fb_721883146 on topic Open Graph
Hi Melissa, thanks for the super fast reply.
Just tried that and it seems to be doing the same.


Still getting same errors:
Object at URL 'www.thewingchunsocialnetwork.xyz/index.p...lbumid=13&photoid=93' of type 'website' is invalid because a required property 'og:title' of type 'string' was not provided.

...Thanks Neil
The topic has been locked.
Support Specialist
9 years 3 months ago #50657 by mel
Replied by mel on topic Open Graph
Neil,

Could you try disabling GZip Page compression in your Global Configuration area? Looking at the error on the FB debugger, it indicates that the scraper is still having trouble connecting to that page, and a common cause of this is that setting. If this fixes it, an explanation of why can be found on our common support questions page at www.sourcecoast.com/jfbconnect/docs/common-support-questions/ for "My Share Preview is incorrect"

-Melissa
The topic has been locked.
Active Subscriptions:

None
9 years 3 months ago #50662 by fb_721883146
Replied by fb_721883146 on topic Open Graph
Ok i disabled the Gzip and then tested again. And yippee it seems to be working, well with the photos at least.

So now there is no errors in the JFBConnect: Open Graph - Activity Log.
The post are showing up in the facebook activity log, but there not showing on the front page of facebook or on my facebook profile.


Neil
The topic has been locked.
Support Specialist
9 years 3 months ago #50664 by mel
Replied by mel on topic Open Graph
The activity logs are where it should be posting. The Activity Log is a view of all actions available to the Timeline. Facebook will choose which actions actually show up in your Timeline view to you or viewers of your profile, and that's all based on different social relevance factors for the viewer. Each item in the activity log can actually be forced to go on the Timeline by using the "Always show on Timeline" setting. However, JFBConnect has no control of the priority/prominence that Facebook assigns to these actions. I hope this helps explain, and let me know if you run into any other problems with other actions.

-Melissa
The topic has been locked.
Active Subscriptions:

None
9 years 3 months ago #50668 by fb_721883146
Replied by fb_721883146 on topic Open Graph
Thank you very much for all your help Melissa and Alex. Great support.

Many thanks neil. :)
The topic has been locked.