I am trying to implement the facebook SSO on an android phone.
The hash key has been generated correctly(i was asked for the password). I have the app page created on facebook.
After taking a build when I put the app on my android phone and try connecting to facebook through it, I get the message "App page is misconfigured. Hit Okay to go back. "
Any suggestions on what could be going wrong here. Or any take on it how I can fix this problem and move ahead with the development.
Below is the code that I have written for the same:
[lua]local widget = require “widget”
require “json”
local facebook = require “facebook”
local appId = “143XXXXXXXXXX7”
print(“khdsfdshnkjfdfdn”)
local onButtonEvent = function (event )
if event.phase == “release” then
print( “You pressed and released a button!” )
facebook.login( appId, listener )
end
end
local myButton = widget.newButton{
id = “btn001”,
left = 100,
top = 200,
default=“fb.png”,
label = “Widget Button”,
width = 150, height = 28,
cornerRadius = 8,
onEvent = onButtonEvent
}
local function onClick( event )
if(event.phase == “release”) then
facebook.login( appId, listener )
end
end
function listener( event )
if ( “session” == event.type ) then
if ( “login” == event.phase ) then
print(“sdfs”)
facebook.request( “me” )
end
elseif ( “request” == event.type ) then
local response = event.response
print(“aaaaaa”)
print( response )
end
end[/lua]
Thanks,
Tarun Gulati [import]uid: 214833 topic_id: 35649 reply_id: 335649[/import]
[import]uid: 56820 topic_id: 35649 reply_id: 141809[/import]