How do I share a ScreenShot on Facebook.

Get help using Construct 2

Post » Wed Jan 20, 2016 10:56 am

Hello!

I'm making a app for the school where i work and i was trying to make a button that will share a SnapShot of canvas and share it on Facebook, but i dont know how to share the SnapShot, i tried using the facebook options but none of the options allow it. I even tried to put the Snapshot on the Picture URL but didnt work...

Does anyone have a ideia?
Image
B
4
Posts: 2
Reputation: 204

Post » Wed Jan 20, 2016 1:35 pm

You would need the picture to be uploaded somewhere. If you have a website have construct upload to the website then put the url of its location in the form in your screenshot.
B
38
S
16
G
8
Posts: 469
Reputation: 8,051

Post » Wed Jan 20, 2016 5:01 pm

@Humanescape thx for the quick anwser, but how do you recommend i do that, i never saw anything that allow me to make a upload on construct.
B
4
Posts: 2
Reputation: 204

Post » Wed Jan 20, 2016 6:57 pm

It has been awhile since I did it personally, but the way I did it was with a base64 version of the image. this then sent to my server using a post with ajax, my server then saved this as an image. the image URL was returned to the construct app.

It has been awhile, there might be better methods now. If you do a forum search on base64 you might find some more help too.
B
38
S
16
G
8
Posts: 469
Reputation: 8,051

Post » Thu Jan 21, 2016 12:49 am

It isnt possible that way. You would need to utilize additional Javascript code in order to upload a canvas snapshot.
www.h1k3.tech

We are here for you!
B
76
S
22
G
15
Posts: 708
Reputation: 15,958

Post » Thu Jan 21, 2016 7:56 am

Is there a detailed and up to date tutorial for this problem? I found one that uses a private MySQL server and PHP script, but also Webstorage, which has been phased out. Facebook object is pretty limited in its capabilities.

In fact, a Scirra-run MySQL server would be nice added value for paid licence users, along with some help on Javascript fo sharing screenshots, inviting friends, posting to friends' walls etc. This is quite crucial nowadays for viral marketing.
B
5
S
1
Posts: 13
Reputation: 324

Post » Thu Jan 21, 2016 8:17 am

You might try this 3rd party plugin, which uploads image to parse server and gets a public url back.
B
107
S
25
G
224
Posts: 4,322
Reputation: 127,821

Post » Thu Jan 21, 2016 8:27 am

Rex, thank you. Will look into it, looks like The Solution! I'll try to figure out posting to friends' walls, it can be done with JS in theory.
B
5
S
1
Posts: 13
Reputation: 324

Post » Thu Feb 11, 2016 8:33 am

Hi Rex,

Parse services have been stopeed so new users cant register .. NOw how to upload screenshot and share on facebook?
B
39
S
11
Posts: 68
Reputation: 2,823


Return to How do I....?

Who is online

Users browsing this forum: Alex Bryant, Congrats2u, Moordhuis, omnipaws, tarek2 and 12 guests