(AGK version: 108.14)
Submitted: 2014-08-22 18:09:09
FacebookSetup("358083327620324")

FacebookLogin()
while GetFacebookLoggedIn() = 0
    Print("Logging In...")
    Sync()
endwhile

if GetFacebookLoggedIn() = 1
    FacebookGetFriends()
    while FacebookGetFriendsState() = 0
        Print("Getting Friends")
        Sync()
    endwhile
endif

do
    Print("Logged In: " + str(GetFacebookLoggedIn()))
    Print("Got Friends: " + str(FacebookGetFriendsState()))
    Print("Friend Count: " + str(FacebookGetFriendsCount()))
    Sync()
loop
Help make AGK better by submitting an example for this command!
(All examples are subject to approval)
Login to post an example of your own.