Did Facebook ShowDialog stop working all of a sudden?

cFacebookAppID = “555555555555555”

cFacebook = require “facebook”

cFacebook.login( cFacebookAppID, MyFacebookListener, {“publish_stream”} )

tried this too:

    cFacebook.login( cFacebookAppID, CFacebook.Listener, { “publish_stream”, “publish_actions” } )

What does your MyFacebookListener function look like?

function CFacebook.Listener( event )

    local self = g.m_facebook

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

        print( "FB Listener - Session - ", tostring(event.response) )

        --options are: “login”, “loginFailed”, “loginCancelled”, or “logout”

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

            print(“Facebook Login”, event.token, event.expiration)

            g.MiscData.ConnectToFacebook = true

            CLog.LogEvent(“Connected”, { Type = “Facebook” } )

            self.m_accessToken = event.token

            self.m_expiration = event.expiration

            self.IsConnected = true

            self:RefreshFacebookIcons()

        else

            print(“Facebook Logout”)

            self:Logout()

            g.MiscData.ConnectToFacebook = false

        end

    else

        print( "FB Listener - “,tostring(event.type),” - ", tostring(event.response) )

    end

end

CFacebook.Logout is here:

function CFacebook:Logout()

    cFacebook.logout()

    self.IsConnected = false

    self:RefreshFacebookIcons()

    g.MiscData.ConnectToFacebook = false

end

If I add the following to lines:
print( "isError: " … tostring( event.isError ) )
print( "didComplete: " … tostring( event.didComplete ) )

I get:

isError: false

didComplete: true

for the connect and dialog calls.

Can you try this:

cFacebook.showDialog("feed", {   caption = "Download for Free",   description = "asdf",   link = "https://www.google.com/", } )

Thanks Rob!

I found the problem! For some reason, facebook will throw an error when you try to link to the google play store or the itunes store. So the following link threw that error:

https://play.google.com/store/apps/details?id=com.mygame.www

But, linking to your own personal site works just fine.