jquery-facebook-multi-friend-selector icon indicating copy to clipboard operation
jquery-facebook-multi-friend-selector copied to clipboard

Server side friends data

Open andreierdoss opened this issue 13 years ago • 3 comments

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,

andreierdoss avatar Aug 08 '11 04:08 andreierdoss

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.

jgerrish avatar Aug 14 '11 08:08 jgerrish

@jgerrish are you using this json:

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

?

brianray avatar Aug 29 '11 15:08 brianray

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

skorokithakis avatar Dec 24 '11 00:12 skorokithakis