Facebook Connect Dialog on iPhone

A problem I keep having when adding Facebook Connect to iPhone applications is that sometimes the dialogs appear briefly then disappear. I keep forgetting why it is for a while, so I thought I’d post this to help anyone who is having a similar problem, and to remind myself about it so that maybe next time I won’t forget 🙂