Posts Tagged ‘iphone’

Funky User-Agent on Facebook iPhone app

The latest Facebook app for iPhone adds some interesting metadata to the user agent sting. The user agent in the web view part of the app, that is (when you follow a link in a status message).

facebook funky user agent

Picture above shows the user agent and more (captured here).

The extra stuff is:

  • FBAN = Application Name
  • FBAV = Application Version
  • FBBV = Build?
  • FBDV = ?Device??
  • FBMD = ?
  • FBSN = ? Obviously something to do with the OS/platoform
  • FBSV = ? Can it be OS version?
  • FBSS = ?
  • FBCR = Carrier
  • FBID = ?
  • FBLC = Language code
  • FBSF = ?

Don’t know what it all means but some are obvious. Anyone know the rest?

Tags: , , ,
Posted in stuff |

Personal hotspot on Verizon iPhone #fail

Now when I am in US I us an Verizon iPhone. Always lagging behind in OS versions, but thats just another annoying thing. The stupidest thing is when I am trying to enable the personal hotspot which is a genius feature that I use all the time on my other iPhone. This is what is happening:

IMG 0077

I have to enable it…. WTF!!?? (btw “enable” means “buy”)

Well, I hit “Go to Website” to do it. And what do I get?

IMG 0078

What else is there to say than “#FAIL”.

Tags: , ,
Posted in mobile thoughts |

Directing mobile users to mobile site

It is becoming increasingly popular to automatically redirect mobile users to a mobile optimised site when accessing a desktop web url. This is usually done server side. For the more advanced browsers, the Safari on iPhone or Androids for example, you can also use a javascript to redirect the user. Such a script could look something like this:

<script language=javascript>
 if((navigator.userAgent.match(/iPhone/i)) ||
    (navigator.userAgent.match(/iPod/i))){
       if(confirm('Hey, is it an apple in your hand? Go to the mobile site?'))
	 location.replace("URL HERE");
  }
</script>

This will create a popup asking the user whether he/she would like to go to the mobile site. Handy stuff.

Tags: ,
Posted in code, mobile thoughts |