Sharing topic to Facebook not showing attached image, only image code.  


david.allman
Posts: 4
Customer
(@david-allman)
Member
Joined: 7 months ago

Hi all, I posted this on the wpForo support forum but have not had any luck solving this issue.

https://wpforo.com/community/how-to-and-troubleshooting-2/sharing-topic-to-facebook-not-showing-attached-image/

When I share a post or a new topic to facebook the first attached image does not display, only the image code.

If anyone can help solve this it would be greatly appreciated.

I've attached a screen shot which may explain it a little easier.

facebook share

Cheers, Dave.

6 Replies
david.allman
Posts: 4
Customer
(@david-allman)
Member
Joined: 7 months ago
Reply
5 Replies
Astghik
Admin
(@astghik)
Joined: 2 years ago

Support Team
Posts: 3457

thank you @david-allman for contacting us. 

The developers are going to check the issue. Please wait a bit. I'll update the topic asap. 

Reply
david.allman
Customer
(@david-allman)
Joined: 7 months ago

Member
Posts: 4

@astghik

Thanks, really appreciate that.

Reply
Astghik
Admin
(@astghik)
Joined: 2 years ago

Support Team
Posts: 3457

@david-allman

Sorry for the late response.

It seems there is some additional plugin that adds the <noscript> tag before the image tag. Also it adds new class=" lazyloaded" for the <img> tag. Please see the screenshot. Here is the HTML part of your forum. 

lazyloaded class

In this screenshot you'll see how it should be:

HTML

Reply
david.allman
Customer
(@david-allman)
Joined: 7 months ago

Member
Posts: 4

@astghik

Thanks for your help, greatly appreciated.

I located the offending plugin that was creating the <noscript> and lazyload so now the image code is gone and the post text is as it should be.

Unfortunately the post image is still not appearing when sharing to Facebook.

As an example link: https://www.goldcoastfishingspots.com.au/gold-coast-fishing-forum/canal-fishing-spots/doonbur-north-reserve-broadbeach-waters/#post-76 which includes the #post-ID the right column sidebar ad image appears...

 

GCFF Screen Shot

But with the clean url: https://www.goldcoastfishingspots.com.au/gold-coast-fishing-forum/canal-fishing-spots/doonbur-north-reserve-broadbeach-waters/ without the #post-ID no image is present when sharing.

Any ideas you may have would be a great help.

Thanks, Dave.

Reply
Astghik
Admin
(@astghik)
Joined: 2 years ago

Support Team
Posts: 3457

@david-allman

I've checked with #post-ID and without the #post-ID. In both cases, it has the same behavior.

Please see the attachments:

fbsharing2
fbsharing1

Reply
Share:
Green
Default
Pear
Black Emo
{green}:grinning:
{green}:wink:
{green}:face:
{green}:inlove:
{green}:sweaty:
{green}:surprised:
{green}:lovekiss:
{green}:laugh:
{green}:formalsmile:
{green}:displeased:
{green}:cool:
{green}:resent:
{green}:nerd:
{green}:screaming:
{green}:amazed:
{green}:sad:
{green}:deceitful:
{green}:starryeyes:
{green}:evil:
{green}:shocked:
{green}:tears:
{green}:sulky:
{green}:smile:
{green}:vomited:
{green}:hi:
{green}:afraid:
{green}:crazy:
{green}:rabid:
{green}:fighting:
{green}:nonoise:
{green}:blushed:
{green}:idontknow:
{green}:scared:
{green}:razz:
{green}:kiss:
{green}:eat:
{green}:shutmouth:
{green}:gape:
{green}:suspicious:
{green}:laughingoutloud:
{green}:bruise:
{green}:crying:
{green}:pray:
{green}:serious:
{green}:excitement:
:)
:d
:wink:
:mrgreen:
:neutral:
:twisted:
:arrow:
:shock:
:???:
:cool:
:evil:
:oops:
:razz:
:roll:
:cry:
:eek:
:lol:
:mad:
:sad:
:!:
:?:
:idea:
:hmm:
:beg:
:whew:
:chuckle:
:silly:
:envy:
:shutmouth:
{pear}:happy:
{pear}:smile:
{pear}:laugh:
{pear}:laughingoutloud:
{pear}:crying:
{pear}:exhausted:
{pear}:nerd:
{pear}:surprised:
{pear}:veryhungry:
{pear}:wink:
{blackemo}:laughtertotears:
{blackemo}:gift:
{blackemo}:love:
{blackemo}:inlove:
{blackemo}:shamefaced:
{blackemo}:heart:
{blackemo}:crazy:
{blackemo}:anguished:
{blackemo}:bruise:
{blackemo}:easymoney:
{blackemo}:exhausted:
{blackemo}:vampire:
{blackemo}:shutmouth:
{blackemo}:wink:
{blackemo}:carnival:
{blackemo}:flowers:
{blackemo}:hotdrink:
{blackemo}:party: