Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers AppGameKit Corner / FacebookLogin() Problem

Author
Message
nickshepherd
10
Years of Service
User Offline
Joined: 19th Jun 2013
Location: The Land of Game Development
Posted: 21st Dec 2016 04:21
Hello,
I don't know why but when using this sequence of code (see below), I will get a Facebook login error in which Facebook states "Not Logged In: You are not logged in. Please login and try again.", after login in and the post still posts to the players wall... Can anyone help me? Thank you in advance!

If GetVirtualButtonPressed(4) = 1 then FacebookSetup()
If GetVirtualButtonPressed(4) = 1 then FacebookLogin()
If GetVirtualButtonPressed(4) = 1 then PlaySprite()
If GetVirtualButtonPressed(4) = 1 then SetSpriteVisible()
If GetVirtualButtonPressed(4) = 1 then FacebookPostOnMyWall()
- Nick S.
=PRoF=
21
Years of Service
User Offline
Joined: 17th Mar 2003
Location: Milton Keynes, UK
Posted: 22nd Dec 2016 12:56
I think the problem your having is that you aren't waiting for FB to be connected. I suggest you have a look at the example in the FacebookSetup() help section.
nickshepherd
10
Years of Service
User Offline
Joined: 19th Jun 2013
Location: The Land of Game Development
Posted: 28th Dec 2016 03:37
Thank you, that seemed to be the issue on most of my devices. For some reason my older devices seem to only launch the FB prompt without waiting to check if the user has been logged in. Interesting!
- Nick S.

Login to post a reply

Server time is: 2024-04-20 05:18:19
Your offset time is: 2024-04-20 05:18:19