Put Canvas as Picture on the facebook's wall

Get help using Construct 2

Post » Tue Jun 26, 2012 12:00 pm

hey
I built a game that makes a draw and i want to make an action that take the darw and post it as a picture in the user facebbok wall

how can i do this??
B
23
S
5
G
4
Posts: 48
Reputation: 5,197

Post » Tue Jun 26, 2012 6:23 pm

the basic process as I see it:

- save the canvas image as a data uri
- upload that to a server and save it as an image file with php
- add the url of that image to the open graph tags in an html page
- post that page to facebook

I've done the first two, but not through construct2, so that at least is possible.
B
10
S
5
G
1
Posts: 37
Reputation: 1,631

Post » Wed Jun 27, 2012 9:40 am

do you know what can i do this on C2? how?
B
23
S
5
G
4
Posts: 48
Reputation: 5,197

Post » Tue Sep 04, 2012 12:26 pm

you need server side scripting to upload pictures to facebook. Check developers.facebook.com for more details and sample scripts. So what you need to do is upload the pict to your server, then call an external php script to upload to facebook. the link above has an already written php file example that will do the trick.
B
68
S
21
G
15
Posts: 701
Reputation: 15,604


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 13 guests