I've seen native iOS applications such as Instagram open up a mobile Safari window when they need you to approve them to use your Facebook or Twitter account. Once you're done, the mobile Safari window closes, and you are taken back to the app automatically.
Is there any way to do this from a homescreen web app? Or failing that, a Phonegap app?