All iPads URL of Facebook when using FaceBook App

Discussion in 'iPad' started by Patrick Michael, Jan 15, 2013.

  1. macrumors newbie

    Joined:
    Jan 15, 2013
    #1
    It appears that the Facebook app for some scenarios is hosting Safari and showing a "chromeless' webpage so that it looks better.

    Does anyone know the URL or other trick to make this happen?
     
  2. macrumors 68040

    D.T.

    Joined:
    Sep 15, 2011
    Location:
    Vilano Beach, FL
    #2
    If I'm following your question correctly, it's not actually the browser opening.

    Native iOS apps can open a "web view" in the app itself, with very specific control presentation (and make the web view appear chromeless).

    Basically when you call native web content, but you want the user to experience it seamlessly in the app (very common, Twitter, most news/feed apps, etc.)
     
  3. thread starter macrumors newbie

    Joined:
    Jan 15, 2013
    #3
    Yes, I wasn't clear.

    The content within the "Web View" has the "Facebook Chrome" stripped out of it. This must becoming from either a different URL or some other flag that the Facebook website knows to remove certain content (such as Chat).
     
  4. macrumors 68040

    D.T.

    Joined:
    Sep 15, 2011
    Location:
    Vilano Beach, FL
    #4
    OK, yes, that's what I said above.

    When you're in an app, and the app opens some "regular" web content without switching over to Safari, it does it through a UIWebView ... that's basically like an embedded browser, but minus all the browser chrome/controls/nav/etc.

    It's handy for displaying web content while controlling the UX and keeping the user "in" the original app (and you can display some custom menu options).
     
  5. thread starter macrumors newbie

    Joined:
    Jan 15, 2013
    #5
    Thanks again for responding.

    You are right, and what that hosted webcontrol is doing is sending a different URL than the regular facebook URL, or an added query string to have the facebook website return *different* HTML to the iPad app.

    I think this requires URL sniffing at the router level. That's the URL I am looking for.
     

Share This Page