When Facebook drives traffic to an application, it often append &ref=whatever
to the query string. This is useful for figuring out which integration points
As noted, ref=ts is appended to the url whenever a user makes a search in the Top Search input field.
Also note that people tend to copy/paste links in their website and blogs, without trimming useless GET strings. So it is possible if you get a high number of referrers coming from the top search that they are in fact links that propagate outside of Facebook.
It means 'Top Search' (if you enter a query into the top, and then click on something, it will append ref=ts