Sharing game link on Facebook with a thumbnail image?

Discussion and feedback on Construct 2

Post » Tue Sep 05, 2017 4:25 pm

Hi all,

I'm trying to make a button in Construct 2 that shares the link to my game on Facebook alongside a logo/preview image. The built-in Facebook object doesn't do anything despite ostensibly having an action specifically for that purpose (i.e. nothing opens in the browser), but I've had more luck opening a URL using the Browser object. This is what the URL looks like:

Code: Select all
https://www.facebook.com/sharer/sharer.php?app_id=XXXXXXXXXXX&sdk=joey&u=" & URLEncode("chicken-road.bitballoon.com") &"&picture="&URLEncode("https://chicken-road.bitballoon.com/images/logo.png")& "&display=popup&ref=plugin&src=share_button"& quote=Description of the game here.&hashtag=#tags #arent #displayed


While this does successfully open a Share dialog in Facebook, the image isn't displayed, despite me manually adding a meta property in index.html:

Code: Select all
<meta property="og:image" content="https://chicken-road.bitballoon.com/images/logo.png" />


The tags are also gone, but that's a much lesser concern.

Does anybody have any ideas as to what could be wrong? For something as seemingly trivial as a Share button, this is sure taking a lot of time... Thanks for your suggestions!
B
3
Posts: 4
Reputation: 183

Post » Thu Sep 07, 2017 11:53 am

Hi. I've used this plugin in the past which was okay it may help https://www.scirra.com/forum/plugin-quot-share-quot-popup-fixed-fb-g-twitter-etc-v3-5_t112678
Image
B
27
S
7
G
1
Posts: 104
Reputation: 2,649


Return to Construct 2 General

Who is online

Users browsing this forum: David181, Yahoo [Bot] and 9 guests