facebook/wordpress — pull request #265 by niallkennedy (2012-09-29 01:28:11+00:00)
Title: separate data from front-end rendering for jquery-token-input

The latest version of [loopj jquery-token-input library](https://github.com/loopj/jquery-tokeninput) includes more HTML escaping by default. The new preference conflicted with the plugin overloading the `name` property with images and other information for a quick display.

* Properly return a `Content-Type` of JSON for our JSON responses in `admin-ajax`.
* Separate images, likes, and other non-name information in the response
* Rebuild the same markup we had before on the client-side with jQuery
* Require a minimum of two characters for page searches. Facebook Graph API does not seem to enjoy returning results for single character queries so let's not waste time on both ends searching on the first character
* Do not show profile images in search results if the page is served over HTTPS. Avoids mixed content warnings, broken padlock, etc.
* Request a 25x25 image, slimming down our total bytes loaded on the page vs. the default 50x50
* Move admin JS touched in this pull into its own variable to separate out our namespace vs. other plugins.
* Setup placeholder values for suggestion strings to swap out with translated values later.