Topic-icon Opengraph Error

Active Subscriptions:

None
9 years 3 months ago #50118 by bison
Opengraph Error was created by bison
Hi
Trying to setup posting to FB group
Have followed the tutorial for setting up object/action for upload of jomsocial gallery pictures, BUT nothing happens.

In the open graph log there is an error.
Please see attached image.

Please advise and help

Best regards
Bison
The topic has been locked.
Support Specialist
9 years 3 months ago #50121 by mel
Replied by mel on topic Opengraph Error
There is no attached screenshot. After you upload the attachment, you have to click the green arrow to attach it to the post.
The topic has been locked.
Active Subscriptions:

None
9 years 3 months ago #50122 by bison
Replied by bison on topic Opengraph Error
Sorry about that -
Here it is

File Attachment:
The topic has been locked.
Support Specialist
9 years 3 months ago #50123 by mel
Replied by mel on topic Opengraph Error
Can you try editing the following JomSocial files:

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);
   }
}*/

In the same JomSocial file, comment out the following block around line 134:
                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 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;
            }
The topic has been locked.
Active Subscriptions:

None
9 years 3 months ago #50124 by bison
Replied by bison on topic Opengraph Error
Hi Mel

Just did the edits, you suggested.
Now when going to jomsocial I get a white page and nothing else.

Please advise

Regards
Bison
The topic has been locked.
Support Specialist
9 years 3 months ago #50125 by mel
Replied by mel on topic Opengraph Error
It sounds as if there is a PHP error on the page, as if the edits weren't correct. Please revert your changes. If you want to PM me FTP credentials, I can do it quickly.
The topic has been locked.
Active Subscriptions:

None
9 years 3 months ago #50126 by bison
Replied by bison on topic Opengraph Error
Hi Mel
Have send you a PM

regards
Bison
The topic has been locked.