Topic-icon Where i can find custom share explanations?

Active Subscriptions:

None
6 years 10 months ago #61999 by Virtuox
Hello,

I m trying to add a width to the tag Open graft image, but I m not sure if it is correct to do, because not work. It is possible?
{SCOpenGraph image=https://domian.com/images/img123.png width=250}
The topic has been locked.
Support Specialist
6 years 10 months ago #62003 by mel
You cannot combine the image and the width together, so the above should be:
{SCOpenGraph image=https://domian.com/images/img123.png}
{SCOpenGraph image:width=250}

Please remember that after adding new tags, the page needs to be re-scraped before the new image will show up in Facebook. The Facebook Sharing Debugger is here . Enter your URL, press Debug. Then when the page is loaded find the "Scrape Again" button to force the page re-scrape to happen.

-Melissa
The topic has been locked.
Active Subscriptions:

None
6 years 10 months ago #62007 by Virtuox

mel wrote: You cannot combine the image and the width together, so the above should be:

{SCOpenGraph image=https://domian.com/images/img123.png}
{SCOpenGraph image:width=250}

Please remember that after adding new tags, the page needs to be re-scraped before the new image will show up in Facebook. The Facebook Sharing Debugger is here . Enter your URL, press Debug. Then when the page is loaded find the "Scrape Again" button to force the page re-scrape to happen.

-Melissa


Thanks Melissa,

I got this error from facebook debug after scrapt and debug many times
caution-solidWarnings That Should Be Fixed
Extraneous Property
Objects of this type do not allow properties named 'image:width'.
The topic has been locked.
Support Specialist
6 years 10 months ago #62008 by mel
Can you provide the specific URL where you've added the tag please?
The topic has been locked.
Active Subscriptions:

None
6 years 10 months ago #62009 by Virtuox

mel wrote: Can you provide the specific URL where you've added the tag please?


yes
Page to share image with 250px width
The topic has been locked.
Support Specialist
6 years 10 months ago #62010 by mel
Here are the image tags I see on your page:
<meta property="og:image" content="https://aloexterior.com/images/com_adsmanager/contents/quarto-para-casal-em-hotel-5-estrelas-anuncie-no-alo_20_2.jpg"/>
<meta property="og:image:width" content="640"/>
<meta property="og:image:height" content="359"/>
<meta property="image:width" content="250"/>

Looks like the syntax for that width tag I provided is incorrect. It's putting it in without the og: prefix, which is where the debugger error is coming from. Either try removing that SCOpenGraph tag for the image width (since there's already a width and height being inserted by JFBConnect) or try the following instead to force the height to 250. However, you may also need to do a height also
{SCOpenGraph og:image:width=250}
The topic has been locked.
Active Subscriptions:

None
6 years 10 months ago #62011 by Virtuox
ok! I try it and get two facebook error
The parser's result for this metadata did not match the input metadata. Likely, this was caused by the data being ordered in an unexpected way, multiple values being given for a property only expecting a single value, or property values for a given property being mismatched. Here are the input properties that were not seen in the parsed result: [b]'og:image:width'[/b]
Object at URL 'https://aloexterior.com/classificados/13-hotel/20-quarto-para-casal-em-hotel-5-e' of type 'article' is invalid because a required property 'og:image:url' of type 'url' was not provided.

the tags code i m using:
{SCOpenGraph image=<?php echo $image; ?>}
{SCOpenGraph og:image:width=250}

I dont call any height or another width, it look like is auto calling these tags.
Remember it is a extension classifieds and work well to call the image from each ad by php, becouse it is just one code for all ads.

I dont know if it ll be possible becouse each image has a different heigth
The topic has been locked.
Support Specialist
6 years 10 months ago #62013 by mel

Object at URL 'aloexterior.com/classificados/13-hotel/2...a-casal-em-hotel-5-e' of type 'article' is invalid because a required property 'og:image:url' of type 'url' was not provided.

og:image and og:image:url are supposed to be identical according to the Open Graph protocol. You can try adding the following tag to see if this helps:
{SCOpenGraph og:image:url=<?php echo $image; ?>}

I dont call any height or another width, it look like is auto calling these tags.

I dont know if it ll be possible becouse each image has a different heigth


JFBConnect has an option in the JFBConnect > Social Meta > Configuration area for setting the image size. If you don't want us to do that automatically when we're adding an og:image to the page, then you need to disable this property.

I don't see any requirement at ogp.me/ saying that og:image:height is required if og:image:width is set. However, Facebook may give a warning if both are not provided. If you cannot specify a known height, then I would suggest removing the SCOpenGraph tag that you're manually adding for width and letting JFBConnect determine the size of the image with our setting in the JFBConnect.
The topic has been locked.
Active Subscriptions:

None
6 years 10 months ago #62014 by Virtuox
ok I try this tag and got this facebook error
The 'og:image' property should be explicitly provided, even if a value can be inferred from other tags.

I try desable the option Image Size in JFB and not work too

What I want is creat different layout share to only ads from section classifieds. I wanted ads displayed like little cards. And articles share with normal share, noe all pages is share with images 100% width in facebook feed.

I get this litle card some time ago when I have a image 230px with, but this image was creat with 230px, not set buy og tags. So i think if I set this og tag for ads image with all images to 250px i can have again a litle layout share only to section classifieds.

File Attachment:
The topic has been locked.
Support Specialist
6 years 10 months ago #62016 by alzander
Please tell us the specific {SCOpenGraph ...} tags you've put on the page. The errors that we're seeing in the Facebook Debug Tool keep changing whenever we test as it seems like you're changing things.

Right now, I'm seeing the following error:
The 'og:image' property should be explicitly provided, even if a value can be inferred from other tags.
That seems accurate since there's an og:image:url tag, but no og:image tag. Please add the {SCOpenGraph image=...} tag that Melissa recommended above.

Thanks,
Alex
The topic has been locked.