Facebook Login keeps returning loginCancelled

What am I missing???

Current build: 2013.2100 (2013.12.7)

Everywhere I read was pointing me to an incorrect hash value configured, but this just isn’t the case.

Used this below to determine the hash of the debug.keystore, verified I copied the package name straight over, and have com.ansca.corona.CoronaActivity as the class name. 

keytool -exportcert -alias androiddebugkey -keystore %HOMEPATH%.android\debug.keystore | openssl sha1 -binary | openssl base64

Since this wasn’t working I generated a new keystore, but got the same results. Since I wasn’t getting it to work in my application I tried just running the code exactly as it was on dev’s page for working with parse to see what it returns… issue is it keeps returning loginCancelled and doesn’t return anything else to the debugging console. It sends a notification regarding external usage, I click ‘ok’, then it pulls event session and loginCancelled. It never brings the application 

Facebook app is installed on android S4 4.4 and stays logged in to facebook.

Facebook side:

Single singon = on

Deep linking = on

App center listed platforms: Android-yes (Public, Auth-Token: Query String, Permissions: email, public_actions

_____________________________________________________

build.settings:

settings = {

    

    orientation = {

        default = “portrait”,

        supported = { “portrait”, }

    },

    

    android =

    {

        usesPermissions =

        {

            “android.permission.INTERNET”,

        },

    },

}

__________________________________________________

[lua]–main.lua

local facebook = require( “facebook” )
local json = require( “json” )

local parse = require( “mod_parse” )
parse:init({
    appId = “XXXXXXXXXXXXXXXX”,
    apiKey = “XXXXXXXXXXXXXXXXXX”
})

parse.showStatus = true

local sessionToken, sessionExpiry

local function doParseLogin( fb_user_id, fb_session_token, fb_session_expiry )

local authData = {
    [“facebook”] = {
        [“id”] = tostring( fb_user_id ),
         [“access_token”] = tostring( fb_session_token ),
        [“expiration_date”] = parse:timestampToISODate( fb_session_expiry )
    }
}

    local function onLoginUser( event )
        print( event.response.objectId )
        if event.status == 201 then
            --newly created
        else
            print( event.response.authData.facebook.id )
        end
    end
    parse:loginUser( { authData = authData }, onLoginUser )
end

local function doFacebookLogin()

local function facebookListener( event )
    print(event.type)
    if event.type == “session” then
        print(event.phase)
    if event.phase == “login” then
         sessionToken = event.token
         sessionExpiry = event.expiration

        if sessionToken then
            facebook.request( “me” )
        end
    end
    elseif event.type == “request” then
        if not event.isError then
            local response = json.decode( event.response )

            if response.id then
            local fb_user_id = response.id
            --all set, lets create/login Parse User
            doParseLogin( fb_user_id, sessionToken, sessionExpiry )
            end
        end
    end
end
local fbAppID = “XXXXXXXXXX”
facebook.login( fbAppID, facebookListener, { “publish_actions, email”})

end

doFacebookLogin()[/lua]

Well simple fix… read a couple posts down about someone re-installing openssl … did this and it returned a completely different hash, which worked.

Note: do not use openssl from googlecode

Use: http://slproweb.com/products/Win32OpenSSL.html

Well simple fix… read a couple posts down about someone re-installing openssl … did this and it returned a completely different hash, which worked.

Note: do not use openssl from googlecode

Use: http://slproweb.com/products/Win32OpenSSL.html