Notifications
Clear all

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

7 Posts
2 Users
0 Reactions
1,939 Views
david.allman
Posts: 4
Customer
Topic starter
(@david-allman)
Member
Joined: 6 years 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
Topic starter
(@david-allman)
Member
Joined: 6 years ago
Reply
5 Replies
Astghik
Admin
(@astgh)
Joined: 7 years ago

Illustrious Member
Posts: 6153

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: 6 years ago

Member
Posts: 4

@astghik

Thanks, really appreciate that.

Reply
Astghik
Admin
(@astgh)
Joined: 7 years ago

Illustrious Member
Posts: 6153

@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: 6 years 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
(@astgh)
Joined: 7 years ago

Illustrious Member
Posts: 6153

@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:
Scroll to top