Facebook friends selector is one of important thing when you develop a Facebook application. It will simplify the way your visitor select their Facebook friend’s instead of manually find friend’s user ID.
Just type part of the friend’s name, the matches name will appears below the field and select one you want.
This is not just another Facebook friend selector you might found somewhere, because it’s not using FBML or iframe, there’s only JavaScript and PHP.
How it works?
- Once you logged in, the script will ask your permission to access your account (friends list etc).
- If you choose allow, then the script fetchs your friend data from https://graph.facebook.com/me/friends and get your friend lists in JSON format.
- Some PHP function convert it into PHP array and simplify it, do some filtering based on user input, then encode back to JSON format so it will compatible with the jQuery autocomplete plugin.
Can’t wait to see it in action?
Just follow the links below:
Credit: jQuery Autocomplete Plugins

Komentar (11)
Arsip Statis