This library simplifies life when it comes to authentication in a Facebook iFrame application
Three Wise Men Inc.
k.A.