Phonegap + Rails to render the views. How does Facebook Connect work then?

Hi everyone,

I’m learning Phonegap and stumbled upon this solution which demonstrated
that views can be dynamically rendered through Rails hosted on Heroku:

It seems to be a good solution, but then I wonder how would Facebook
Connect work here then since the FB button will also be rendered from
Rails
dynamically? Would it require Childbrowser plugin?

Thank you!

One solution might be to hand off authentication to a native control,
use
the native FB SDK to authenticate and get the token, and then back to
the
PhoneGap webview. I’ve used this hybrid approach with Rails and
PhoneGap,
and it’s been a decent compromise. Use Rails for what it does well, but
leverage the full native stack if that works better.

Another approach would be to grab the Facebook Connect response either
with
Javascript injected into the PhoneGap view on the client side, or using
the
native WebView hooks that let you do a kind of man-in-the-middle
approach,
so that your native app gets the token instead of/in addition to the
Rails
app. Both Android and iOS webviews provide native hooks that let you do
this.

Dave