Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / facebook post image

Author
Message
tmu
7
Years of Service
User Offline
Joined: 2nd Feb 2017
Location:
Posted: 14th Apr 2017 11:43
Is it possible to directly post an image from AppGameKit to Facebook? I can only see a function to post a message with a link to a pic hosted somewhere else.

I would like to provide an option to post screenshot of the final ending screen before game over to Facebook. Of course, if I could do this for other social media platforms that would be a big plus.

This would be Android + iOS.

For example, in Android we can use intents to share data to any app (e.g., Facebook, Twitter, WhatsApp, ...) on the device: https://developer.android.com/training/sharing/send.html


JohnnyMeek
11
Years of Service
User Offline
Joined: 23rd Apr 2013
Location: Slovenia
Posted: 14th Apr 2017 11:51
You can use the ShareImage( szFilename ) command, or you can upload the file to your server.

tmu
7
Years of Service
User Offline
Joined: 2nd Feb 2017
Location:
Posted: 14th Apr 2017 19:37
Brilliant! Thanks Johnny, ShareImage() is exactly the thing I was looking for..

So to post the screenshot I should do some rendering trickery with GetImage(), store the captured image to file, and then call ShareImage()?

Cool.

Login to post a reply

Server time is: 2024-09-30 01:24:57
Your offset time is: 2024-09-30 01:24:57