Tell me more ×
Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free, no registration required.

Recently (I believe some weeks ago) with the latest update of the Twitter app for iOS, all links found inside tweets are opened in Twitter's build-in browser. My question is how to find Twitter's browser agent so I can display custom messages.

For example: If browser is Twitter's in-app browser then display a custom message via HTML+PHP. It seems that there is no known agent available. Any help would be appreciate.

share|improve this question

1 Answer

up vote 0 down vote accepted

Two obvious means for discovering a user agent come to mind. The first is checking your server logs. The user agent is typically logged by default, and you can add it if it's not.

The second method is to put http://whatsmyuseragent.com in a tweet and visit it from an iOS device to see what it says.

share|improve this answer
ok thank you.I will try it. – Theodoros80 Mar 9 at 15:40

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.