How to automatically close facebook share dialog, after succesfull / cancel share?

Hello, 

i have been able to show the facebook share dialog, after successfully share the content, the dialog wont disappear, user must close it manually.

does anybody know how to automatically close the dialog when success or cancel?

the code i use as writen below:

function ggc:FBFeed(name, caption, description, link, picture) local function fbListener3( event ) if ( "dialog" == event.type ) then print( "dialog3", event.response ) --handle dialog results here end end local function fbListener2( event ) if ( "session" == event.type ) then if ( "login" == event.phase ) then local access\_token = event.token facebook.showDialog( "feed", { name = name or "Facebook SDK for Android", caption = caption or "Build great social apps and get more installs.", description = description or "The Facebook SDK for Android makes it easier and faster to develop Facebook integrated Android apps.", link= link or "https://developers.facebook.com/android", picture = picture or "https://raw.github.com/fbsamples/ios-3.x-howtos/master/Images/iossdk\_logo.png", }, fbListener3 ) end end end local function fbListener0( event ) if ( "session" == event.type ) then if ( "login" == event.phase ) then local access\_token = event.token facebook.login( fbAppID, fbListener2, { "publish\_actions", "user\_birthday" } ) end end end facebook.login( self.fbAppId, fbListener0, { "user\_friends", "email" } ) end