Using this example code.
Facebook {
id: facebook
appId: "*removed*"
onSessionStateChanged: {
if (sessionState === Facebook.SessionOpened) {
console.debug("Session opened.");
// Session opened, you can now perform any Facebook actions with the plugin!
}
else if (sessionState === Facebook.SessionOpening) {
console.debug("Session opening...");
}
else if (sessionState === Facebook.SessionClosed) {
console.debug("Session closed.");
}
else if (sessionState === Facebook.SessionFailed) {
console.debug("Session failed.");
}
else if (sessionState === Facebook.SessionPermissionDenied) {
console.debug("User denied requested permissions.");
}
}
Component.onCompleted: {
facebook.openSession();
}
}
It returns “Session opening” and nothing further. The Facebook Analytics shows the app is being hit though.
Any thoughts on what I have missed?