facebook/facebook-ios-sdk — pull request #549 by x2on (2013-07-16 12:47:01+00:00)
Title: Fix for getting correct window.

At the moment the UIWindow could be an UIAlertView, which can't have a subview.
Now instead of the UIAlertView the correct window is used.