FacebookSetup("358083327620324")FacebookLogin()while GetFacebookLoggedIn() = 0 Print("Logging In...") Sync()endwhileif GetFacebookLoggedIn() = 1 FacebookGetFriends() while FacebookGetFriendsState() = 0 Print("Getting Friends") Sync() endwhileendifdo Print("Logged In: " + str(GetFacebookLoggedIn())) Print("Got Friends: " + str(FacebookGetFriendsState())) Print("Friend Count: " + str(FacebookGetFriendsCount())) Sync()loop