mbrevoort / jquery-facebook-multi-friend-selector

A jQuery based Alternative Facebook Multi-Friend Selector that uses the Graph API
Other
266 stars 64 forks source link

Server side friends data #17

Open andreierdoss opened 13 years ago

andreierdoss commented 13 years ago

Hello,

Great job on this tool. I really like the look at feel of the plugin. In my app, I already use the Koala gem and because I get 'offline_access' I can get the list of friends even if the user is not currently logged in into Facebook. Is there an easy way of replacing the call to Facebook with a json object representation of the id and name of friends?

Thank you,

jgerrish commented 13 years ago

I'm actually using a similar setup. I wrote a patch to call our web service instead of the FB API.

I just put our fork up on github, feel free to pull my code and use it in your project:

jquery-facebook-multi-friend-selector fork that uses jQuery AJAX call to populate friend list

Just pass in a URL to your JSON service in the jfmfs initialization. For example: $("#jfmfs-container").jfmfs( { "url": 'http://yourdomain.com/users/1/friends.json' });

Ideally, it should be configurable which method to use. Maybe I'll add that and send a pull request.

brianray commented 13 years ago

@jgerrish are you using this json:

http://developers.facebook.com/tools/explorer?method=GET&path=me%2Ffriends

?

skorokithakis commented 12 years ago

+1 on merging this in trunk, I also would like to see this.