Thanks, Raul,
I was also originally looking for a multi platform solution and came
across that thread. However the more I saw it the more I ended up
thinking that for my limited needs using the SDKs was going to end up
resulting in less integration points than trying to do a redirect
"thing" on the server and write a whole UI myself to do the
integration manually. That's essentially what the SDKs do. Plus the
deeper integration (single-sign-on for example) that the native SDKs
provide was going to end up being a better experience than an
eventually expiring cookie on the web.
BTW, the integration is inside a native extension, but publishing it
as a JavascriptInterface. It was the quickest way, I may go to a full
swig ruby integration if I end up doing deeper things that require me
to MVC it.
That's why I titled the post the way I did, because the underlying
problem is that a completely independent WebView with WebViewClient,
using RhodesActivity as its controlling activity, never gets its
shouldOverrideUrlLoading called. The fact that it's the very common
Facebook SDK dialog is kind of a side effect that let's you more or
less easily try it yourself.
I would love to know why and a solution from a Rhomobile expert :-)
Thanks!
On Sep 14, 9:48 am, Raúl Alejandro Véjar Llugany
<
raul.ve...@gmail.com> wrote:
> Mmmm... I better let someone with more experience using the Android Facebook
> SDK answer this.
> I was looking for a multi-platform solution for facebook integration so I
> discarded the sdks right of the bat but I couldn't get the javascript sdk to
> work properly either because of the url rewriting rhodes does. It might have
> something to do with that although I'm not entirely sure how you are
> exposing the sdk to rhodes... as a native extension I suppose.
>
> The way that I know integration with Facebook works is to use the dialog and
> graph apis directly, check this discussion for it:
>
>
http://groups.google.com/group/rhomobile/browse_thread/thread/887c4f4...
>
> Hope that helps
>
>
>
>
>
>
>
> On Wed, Sep 14, 2011 at 12:35 PM, David Martinez <
dmarti...@wurl.com> wrote:
> > Hi Raúl,
>
> > I'm using the default return url as defined in facebook/src/com/
> > facebook/android/Facebook.java - fbconnect://success or fbconnect://
>
> > public static final String REDIRECT_URI = "fbconnect://success";
> > public static final String CANCEL_URI = "fbconnect://cancel";
>
> > None of the Urls ever seem to pass through shouldOverrideUrlLoading
> > though.
>
> > On Sep 14, 6:10 am, Raúl Alejandro Véjar Llugany
> > <
raul.ve...@gmail.com> wrote:
> > > What return url are u using?
>
> > > On Tue, Sep 13, 2011 at 11:23 PM, David Martinez <
dmarti...@wurl.com>
> > wrote:
> > > > I have an app in rhodes 3.0.2 that uses the Facebook SDK at
> > > >
https://github.com/facebook/facebook-android-sdkinorder to do some