Topic-icon og:image for homepage

Active Subscriptions:

None
14 years 5 months ago #17648 by tomŠt
og:image for homepage was created by tomŠt
Hi!

I have a question about og:image off my front page... If i share just my URL of the index page on Facebook, i don/t see an image, also in Facebook Debugger there isnt a og:image value... I use K2 and when i Like my articles the image is normally displayed... If I set image in OpenGraph configuration, then this image is used with all of the articles which i dont want to happen...

So how can i set an og:image that will apply only for the home page?
The topic has been locked.
Support Specialist
14 years 5 months ago #17659 by alzander
Replied by alzander on topic og:image for homepage
If you want a special image just for the home page, we'd recommend you create a Custom HTML module. Set the title to not display, and then in the HTML area, simply add:
{JFBCGraph image=http://site.com/image.jpg}
Then, set the module to only show in the home page menu item.

That should get you going, but obviously, you'll need to test that it doesn't show in the wrong spot or cause other issues. Ideally, the module won't alter the page at all, but depending on your template and the position you put it in, something may appear. Usually, templates have a "debug" position, which is perfect for this.

Using the Facebook Debugger will help verify the image was set right as well.

Hope that helps,
Alex
The topic has been locked.
Active Subscriptions:

None
14 years 5 months ago #17667 by tomŠt
Replied by tomŠt on topic og:image for homepage
This doesnt work, i've tried to position the module in all positions... I even tried to display a module with an image, but og:image is always empty.. When i publish every other links, except HOME link on my Main menu, i get full of images, so I think something else might be here ... Any idea? My page is slorapfan.info
The topic has been locked.
Support Specialist
14 years 5 months ago #17669 by alzander
Replied by alzander on topic og:image for homepage
No clues. I just looked at the page, and I see no og:image tag at all. Is the module currently published there, or did you disable it?

Can you try testing with a different template, to see if that makes the og:image tag work as well?

Not really sure why the module wouldn't work. It doesn't matter the position you put it in, as long as it's a position that exists on your home page. The tp=1 query string parameter is disabled on your site, so I can't see what template positions are available to give recommendations. The best I can say is to put the following in the custom HTML module:
TEST {JFBCGraph image=http://site.com/image.jpg} HERE
The output on the page should look like:
TEST HERE
That's because JFBConnect will strip the { } tag to create the Open Graph tag and just leave the other text.

Hope that helps you diagnose the issue,
Alex
The topic has been locked.
Active Subscriptions:

None
14 years 5 months ago #17670 by tomŠt
Replied by tomŠt on topic og:image for homepage
I have it published now, i removed it when you checked probably :) But still doesnt work..
The topic has been locked.
Active Subscriptions:

None
14 years 5 months ago #17672 by tomŠt
Replied by tomŠt on topic og:image for homepage
In the source code now og:image is visible, but Facebook Debugger doesnt see it..

developers.facebook.com/tools/debug/og/o...%2F%2Fslorapfan.info

strange :)
The topic has been locked.
Support Specialist
14 years 5 months ago #17675 by alzander
Replied by alzander on topic og:image for homepage
Tomaž,
I'm not sure either. It definitely looks right from the HTML. Something very strange that I've never seen is that the bottom link from the Facebook Debugger that says "See exactly what our scraper sees for your URL" shows the actual HTML that Facebook has scraped. For some reason, it's missing almost all the 'body' of your page and is missing the new og:image tag as well:
developers.facebook.com/tools/debug/og/e...%2Fslorapfan.info%2F

I've never seen Facebook do that, but I'm assuming it's simply a caching issue on their part. Usually the Facebook Debugger will refresh the cache, but in this case, it may just have to clear up on its own in the normal 3-5 day window.

Certainly, if you have anything on your site that should change the content based on certain user agents or visiting IPs, disable that, but I doubt that's the issue.

Hope that helps,
Alex
The topic has been locked.