Problems sharing screenshots on Facebook..

local function captureOnEvent() local screenCap = display.captureScreen( true ) display.save( screenCap, "score.png" , system.TemporaryDirectory ) screenCap:removeSelf( ) end

local function facebookListener( event ) print( "event.name", event.name ) --"fbconnect" print( "event.type:", event.type ) --type is either "session", "request", or "dialog" print( "isError: " .. tostring( event.isError ) ) print( "didComplete: " .. tostring( event.didComplete ) ) --"session" events cover various login/logout events --"request" events handle calls to various Graph API calls --"dialog" events are standard popup boxes that can be displayed local attachment = { message = "I just Scored ".. tostring( newScore ).." in Game!" , source = { baseDir=system.TemporaryDirectory, filename="score.png", type="image" } } if ( "session" == event.type ) then --options are: "login", "loginFailed", "loginCancelled", or "logout" if ( "login" == event.phase ) then local access\_token = event.token --code for tasks following a successful login facebook.request( "me/photos", "POST", attachment ) end elseif ( "request" == event.type ) then print("facebook request") if ( not event.isError ) then local response = json.decode( event.response ) --process response data here end elseif ( "dialog" == event.type ) then print( "dialog", event.response ) --handle dialog results here end end local function onShareBtnRelease() timer.performWithDelay( 110, captureOnEvent ) local fbAppID = "1xxxxxxxxxxx9" --replace with your Facebook App ID timer.performWithDelay(125, function () facebook.login( fbAppID, facebookListener, { "publish\_actions, email" } ); end) end

As you can see, I’m trying to publish screenshot on facebook, it does post the text successfully but the only shares a small part of the screen as an image. I tried display.capture and display.capturebounds(){even smaller part of screen gets printed in case of capturebounds.} . I believe I’m running latest build.
Thanks.

 

Can you post a screen shot of what you’re seeing on facebook?

Please also verify the build version and what platform your running on (Windows, OS-X, and building for Android, iOS)

Thanks

Rob

ibd3hHU5JTKdor.png

Build version 2189. Platform Windows. Building for android.

Thanks

What happens if you take the “true” off of the captureScreen()?

No change, I think this has something to do with the facebook posting, not the screenshot taking… not entirely sure…
Thanks

Can you post a screen shot of what you’re seeing on facebook?

Please also verify the build version and what platform your running on (Windows, OS-X, and building for Android, iOS)

Thanks

Rob

ibd3hHU5JTKdor.png

Build version 2189. Platform Windows. Building for android.

Thanks

What happens if you take the “true” off of the captureScreen()?

No change, I think this has something to do with the facebook posting, not the screenshot taking… not entirely sure…
Thanks