Our issue is solved its giving us the wrong hashkey we recreated the keystore again its working .OOPS Still there is an issue still its not asking for any app permissions and not getting posted. If i have already authorized the app then its getting posted. Here is the code what i am using . What Permissions we need to specify in the build settings??? Please share the solution.
local fbappID =“XXXXXXXX”
local function onLoginSuccess()
– Upload ‘iheartcorona.jpg’ to current user’s account
local attachment = {
name = “Test?”,
link = “”,
caption = “itunes/googleplay”,
description = " TEST",
message = " GooglePlay : "…playLink,
picture = " ",
actions = json.encode( { { name = “SeeMore…” ,link = "http://www.google.com" } } )
}
facebook.request( “me/feed”, “POST”, attachment )
facebook.logout()
end
local function fbListener( event )
if event.isError then
native.showAlert( “ERROR”, event.response, { “OK” } )
else
if event.type == “session” and event.phase == “login” then
– login was a success; call function
onLoginSuccess()
elseif event.type == “request” then
– this block is executed upon successful facebook.request() call
native.showAlert( “Success”, " Shared Successfully.", { “OK” } )
end
end
return true
end
local function onFBClicked()
facebook.login(fbappID, fbListener, { “publish_stream” } )
end
end