Posting screenshot to twitter from web game

Get help using Construct 2

Post » Sun Nov 27, 2016 10:00 am

Hi!

I'm guessing there's no possibility to share a screenshot from a construct 2 web game to twitter? Been googling and looking through twitters developer pages, but am not sure if it's a possibility since 2014 when they seemed to have changed things regarding images. Seems like now, you can only share images by linking to one via a meta tag in the header of a site.

Does anyone know if there's a way, except for saving the picture to a computer and then manually uploading it to a twitter message? :)
Image
B
12
S
3
Posts: 40
Reputation: 847

Post » Mon Nov 28, 2016 10:19 pm

It looks like you POST to the "https://upload.twitter.com/1.1/media/upload.json" URL to upload images with the image as either binary or base64 encoded in the media or media_data parameter.
https://dev.twitter.com/rest/reference/ ... dia/upload
https://www.ravenheart.ca/home
I don't check the forums much anymore, but I will receive an email for PMs.

"Someone once told me I bite off more than I can chew...

I told them I would rather choke on greatness than nibble on mediocrity."
B
22
S
6
G
1
Posts: 1,418
Reputation: 4,830


Return to How do I....?

Who is online

Users browsing this forum: brunopalermo, MaxxMunnn, richcoz81, Soluna Software, totoe and 23 guests