Topic-icon page image not broadcasted

Active Subscriptions:

None
10 years 7 months ago - 10 years 7 months ago #55287 by ducky
When I use the broadcast admin bar to post a sobipro page to social media. It shows the default image i set in the open graph settings, instead of the image from the page.

i.e. page
www.ehcanadatravel.com/travel-stories/29...p-of-a-mountain.html

Please advise
Many thanks!
Colin
Last edit: 10 years 7 months ago by ducky.
The topic has been locked.
Support Specialist
10 years 7 months ago #55291 by alzander
Replied by alzander on topic page image not broadcasted
JFBConnect doesn't have a SobiPro Open Graph plugin. WIthout that, we can't automatically detect the image that should be used. To let JFBConnect know the specific image to use when posting, you'll need to add a custom open graph tag on the page somewhere to call it out, like:
{SCOpenGraph image=http://yoursite.com/link-to-image.jpg}
Unless there's something to specify the image to use on the page, either from the open graph tag above or from a plugin that will automatically detect the image, the default image you've set will be used.

I hope that helps explain,
Alex
The topic has been locked.
Active Subscriptions:

None
10 years 7 months ago #55319 by ducky
Replied by ducky on topic page image not broadcasted
SC needs a plugin to do that as well. I thought some code could be just added to the SP template, that would grab the image from the field.

Having to set an image for each and every entry is just not a starter at all. Very disappointing.
The topic has been locked.
Support Specialist
10 years 7 months ago #55327 by alzander
Replied by alzander on topic page image not broadcasted
I don't know SobiPro very well, so I don't know their template structure. However, you can add that tag above to any template PHP file to grab the first image and insert it into the page. You shouldn't need to do it on every page of your site.

To add it to a template, you'd need to know how the first image would be found in SobiPro, and then do something like:
$firstImage = ???;
echo '{SCOpenGraph image=' . $firstImage . '}';
I hope that helps explain. We have a task to create a SobiPro plugin for a future release, but I don't have any timeline on when that may be done.

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

None
10 years 7 months ago #55345 by ducky
Replied by ducky on topic page image not broadcasted
Sorry I guess i miss understood, adding the code to the template to grab the first image is what I'm looking for.
I should be able to figure that out as SP is an XML template.

This is the template call (any ideas)
<xsl:attribute name="src"> <xsl:value-of select="entry/fields/field_gallery/data/@image" /> </xsl:attribute>

Sorry about my frustration

Thanks again
The topic has been locked.
Support Specialist
10 years 7 months ago #55352 by alzander
Replied by alzander on topic page image not broadcasted
I really don't know. I've never used XML templates within Joomla before. I'm used to the standard Joomla PHP template system. If you can print out standard PHP or even HTML code, the above should be able to do what you're looking for. If not, you may want to contact the Radek at SobiPRO to determine the best way to add custom HTML to the output using their first image variable.

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

None
10 years 6 months ago #55580 by ducky
Replied by ducky on topic page image not broadcasted
I asked the Sobipro techs about the open graph code to include the image. as you posted

$firstImage = ???;
echo '{SCOpenGraph image=' . $firstImage . '}';

they did not understand what was being asked.

please advise
Colin
The topic has been locked.
Support Specialist
10 years 6 months ago #55585 by alzander
Replied by alzander on topic page image not broadcasted
You need to insert a tag like below into the HTML output of the page so that JFBConnect can detect it and determine the og:image tag to insert into the page:
{SCOpenGraph image=http://yoursite.com/link-to-some-image.jpg}

The thing you need to determine is what the actual image is that needs to be inserted into that tag. If you're able to use PHP, the code would be like what I posted above, where $firstImage has some code to grab the first image from SobiPro.

I guess the best question to ask the SobiPro developers is:
* Using PHP, how can I get the main image for a page?
* Once I have that, how can I use that image URL in a custom string that I want to display on the page?

With those 2 answers, I could help you create the right code you'd need to add wherever/however they tell you.

I hope that helps,
Alex
The topic has been locked.