hmmm that's pretty similar to mine:
and this is the result on my Phone:
function RunFaceBookLogin()
//runs facebook login
//set up sprites
setspritevisible(TitleSpt,1)
setspritepositionbyoffset(TitleSpt,getvirtualwidth()/2,getspriteheight(TitleSpt))
setspritevisible(BackStartSpt,1)
setspritepositionbyoffset(BackStartSpt,getvirtualwidth()/2,getvirtualheight()/2)
Set_GUI_Button_Visible(BtnFaceBook,1)
SpriteID = Get_GUI_Button_SpriteID(BtnFaceBook)
Set_GUI_Button_Position(BtnFaceBook,(getvirtualwidth()/2)-(getspritewidth(SpriteID)*0.5),(getvirtualheight()/2)-(getspriteheight(SpriteID)))
Set_GUI_Button_Visible(BtnSkip,1)
SpriteID = Get_GUI_Button_SpriteID(BtnSkip)
Set_GUI_Button_Position(BtnSkip,(getvirtualwidth()/2)-(getspritewidth(SpriteID)*0.5),(getvirtualheight()/2)+(1.0*getspriteheight(SpriteID)))
Set_GUI_Button_Visible(BtnMusic,1)
Set_GUI_Button_Position(BtnMusic,getvirtualwidth()-(getspritewidth(MuteSpt)*1.5),getspriteheight(MuteSpt)/2.0)
MusicSpt = GUI_Button[BtnMusic].SpriteID
setspritevisible(MuteSpt,MusicMute)
setspritepositionbyoffset(MuteSpt,getspritexbyoffset(MusicSpt),getspriteybyoffset(MusicSpt))
Set_GUI_Button_Visible(BtnSound,1)
Set_GUI_Button_Position(BtnSound,(getspritewidth(MuteSpt)/2.0),getspriteheight(MuteSpt)/2.0)
SoundSpt = GUI_Button[BtnSound].SpriteID
setspritevisible(SoundMuteSpt,SoundMute)
setspritepositionbyoffset(SoundMuteSpt,getspritexbyoffset(SoundSpt),getspriteybyoffset(SoundSpt))
//settextstring(TxtCredits,"")
//settextvisible(TxtCredits,1)
//settextposition(TxtCredits,(getvirtualwidth()/2.0),getvirtualheight()*0.8)
//MAIN LOOP
MenuState = 0
HighScoreWipe = 0
//FacebookSetup(FaceBookID)
SetPrintColor(255,255,255)
repeat
//adverts
ACAN_Handle()
//input
px# = screentoworldx(getpointerx())
py# = screentoworldy(getpointery())
//handle buttons
Manage_GUI_Buttons()
//button logic
//test for high-score reset
remstart
if getspritehittest(TitleSpt,px#,py#)=1
if getpointerstate()=1
//holding
HighScoreWipe = HighScoreWipe + (getframetime()*1000)
endif
if getpointerreleased()=1
if HighScoreWipe>2000
HighestDrop = 0.0
AddToLogFile("Local high-score reset to zero.",1)
endif
HighScoreWipe = 0
endif
endif
remend
//test for mutes
if GUI_Button[BtnMusic].State=4
if MusicMute=1
MusicMute = 0
setmusicsystemvolume(MaxMusicVol)
else
MusicMute = 1
setmusicsystemvolume(0)
endif
setspritevisible(MuteSpt,MusicMute)
endif
if GUI_Button[BtnSound].State=4
if SoundMute=1
SoundMute = 0
SetSoundSystemVolume(SystemSoundVol)
else
SoundMute = 1
SetSoundSystemVolume(0)
endif
setspritevisible(SoundMuteSpt,SoundMute)
endif
//test for login button
if GUI_Button[BtnFaceBook].State=4
MenuState = 1
FacebookLogin()
AddToLogFile("-----------------------------------",0)
AddToLogFile("Logging into Facebook.",1)
endif
//test for skip button
if GUI_Button[BtnSkip].State=4
MenuState = 666
endif
sync()
until MenuState>0
//So what happened
if MenuState=1
timeout# = timer() + 5.0
//settextstring(TxtCredits,"Logging into Facebook...")
repeat
sync()
FB_log_in = GetFacebookLoggedIn()
until FB_log_in>0 or timer()>timeout#
else
FB_log_in = -2
endif
select FB_log_in
case -2: //skipped
AddToLogFile("Player skipped Facebook login",1)
endcase
case -1: //error
AddToLogFile("An error occured when logging into Facebook",1)
endcase
case 0: //not logged in
AddToLogFile("Not logged into Facebook",1)
endcase
case 1: //logged in
FBUID = FacebookGetUserID()
FBUName = FacebookGetUserName()
//PlrName = FBUName
AddToLogFile(FBUName+" logged into Facebook with ID "+FBUID,1)
endcase
endselect
AddToLogFile("-----------------------------------",0)
//outro animation
//hide sprites
setspritevisible(BackStartSpt,0)
setspritevisible(TitleSpt,0)
setspritevisible(MuteSpt,0)
setspritevisible(SoundMuteSpt,0)
Set_GUI_Button_Visible(BtnFaceBook,0)
Set_GUI_Button_Visible(BtnMusic,0)
Set_GUI_Button_Visible(BtnSkip,0)
Set_GUI_Button_Visible(BtnSound,0)
//settextvisible(TxtCredits,0)
endfunction MenuState