Instant Game share with screenshot

I like to share game result screen using facebook share and fbinstant.share() require base64 encoded image as payload.

Are there any extension that I can use to capture screen and create base64 encoded image(it needs to support HTML5 version )

I’m afraid not.

Discussion:

Issue:

We’re investigating a few options here. It might be possible to render to a render target and grab the pixels from there. We’ll keep you posted.

3 Likes

@AGulev and @jhonny.goransson cracked it!

3 Likes

The implementation on HTML5 is quite different though. It is async and it will return the image as a base64 encoded png. The other functions from the screenshot extension are not available on HTML5.

2 Likes