Facebook don't return response in Listener with facebook.showDialog()

local facebook = require( “plugin.facebook.v4a” )

 

local function facebookListener( event )

 

   print(“LISTENER FACEBOOK”);

    print("Any JSON: " … json.encode(event));

 

    if ( “fbinit” == event.name ) then

 

        print( “Facebook initialized” )

        facebook.login()

 

    elseif ( “fbconnect” == event.name ) then

 

        if ( “session” == event.type ) then

            – Handle login event

            if ( “login” == event.phase ) then

                local shareParams = {

                    link = “https://www.coronalabs.com/”,

                    title = “Corona Labs”

                }

                facebook.showDialog( “link”, shareParams )

            end

 

        elseif ( “dialog” == event.type ) then

            – Handle dialog event

            print( event.response )

        end

    end

end

 

local function facebookListener( event )

 

 

    if ( “fbinit” == event.name ) then

 

        print( “Facebook initialized” )

        facebook.login()

 

    elseif ( “fbconnect” == event.name ) then

 

        if ( “session” == event.type ) then

            – Handle login event

            if ( “login” == event.phase ) then

                local shareParams = {

                    link = “https://www.coronalabs.com/”,

                    title = “Corona Labs”

                }

                facebook.showDialog( “link”, shareParams )

            end

 

        elseif ( “dialog” == event.type ) then

            – Handle dialog event

            print( event.response )

        end

    end

end

… after connect to facebook and works all fine I try it:

 

 local shareParams = {

     link = "http://www.coronalabs.com",

      title = “SHARE THIS TITLE”

  }

  facebook.showDialog( “link”, shareParams ) ;

… and works fine, but don’t return nothing in facebookListener!!!

ddon’t print nothing…

not even: print(“LISTENER FACEBOOK”);

all the rest works well…

local facebook = require( "plugin.facebook.v4a" ) local facebookListener = function (event) print ("-- facebook event", event.name) if ("fbinit" == event.name) then facebook.publishInstall() end end facebook.init(facebookListener) 

Same here,

facebookListener function is not called and so publishInstall can never be called. Any clarification about this will be nice…

Thanks