Unable To Log In Via Facebook

Is anyone having problems logging into CC via Facebook?  I am following the instructions on this page.

I can log into Facebook and get the token, then when I issue a [lua]facebook.request(“me”)[/lua], I never receive a request event.type in my listener.  It used to work when CC was GM.

Are you getting a response from FB for the “me” request?  Are you getting any errors.  You are doing this on device correct?

Hi Rob,

Yes, on a device… I tried a Nook and an Android phone.  It seems I do not get a request response.  Here’s my listener, with some pop ups to show me status:

[lua]

    local function fbListener(event)

        if event.type == “session” then

            if event.phase == “login” then

                local alert = native.showAlert(“Logged Into Facebook”,

                    event.token, {“OK”})

                token = event.token

                facebook.request(“me”)

            end

            

        elseif event.type == “request” then

            local alert = native.showAlert(“Facebook Request”,

                    event.response, {“OK”})

        end

    end

[/lua]

I do get the “Logged into Facebook” pop-up, but not the “Facebook Request” pop-up.  I was just wondering if someone else was having this problem, or if I need to continue to debug.  I guess I can add a pop-up outside of the if’s to see if anything is returning at all.

Are you getting a response from FB for the “me” request?  Are you getting any errors.  You are doing this on device correct?

Hi Rob,

Yes, on a device… I tried a Nook and an Android phone.  It seems I do not get a request response.  Here’s my listener, with some pop ups to show me status:

[lua]

    local function fbListener(event)

        if event.type == “session” then

            if event.phase == “login” then

                local alert = native.showAlert(“Logged Into Facebook”,

                    event.token, {“OK”})

                token = event.token

                facebook.request(“me”)

            end

            

        elseif event.type == “request” then

            local alert = native.showAlert(“Facebook Request”,

                    event.response, {“OK”})

        end

    end

[/lua]

I do get the “Logged into Facebook” pop-up, but not the “Facebook Request” pop-up.  I was just wondering if someone else was having this problem, or if I need to continue to debug.  I guess I can add a pop-up outside of the if’s to see if anything is returning at all.