Comments (2)
^need a similar solution
from jquery-facebook-multi-friend-selector.
This was a while ago now but I think I ended up doing something like this:
var selectedFriends = $('#jfmfs-container').data('jfmfs').getSelectedIds(),
friendsWithIdAndName = [];
for ( var i = 0, len = selectedFriends.length; i < len; i += 1 ) {
FB.api({
method: 'fql.query',
query: 'SELECT uid, first_name, last_name FROM user WHERE uid=' + selectedFriends[i]
}, function(response) {
return friendsWithIdAndName.push(response[0]);
}
}
i.e. querying the FB API for each ID to get a name back and push to a new array. Probably not the best solution but it did the trick for me.
from jquery-facebook-multi-friend-selector.
Related Issues (20)
- Feeding user ids, rather than getting all friends HOT 2
- Support multiple jfmfs on a page HOT 1
- album selector
- Server side friends data HOT 3
- Example Fails with Login Failed Notice HOT 3
- CSS cuts off bottom of friends container HOT 2
- demo has a problem with the CSS when viewing from Firefox 8.0 HOT 1
- test user friends of test users don't show up HOT 2
- Centering Friends within the friend container HOT 1
- How to vertically center user's name to the user's profile image?
- Preload friend images - feature request. HOT 1
- Send invitations to selected friends HOT 3
- Selecting all friends by default
- Static watermark text for friend-search textbox
- Max 15 limit HOT 1
- Is there a method to reset the filter? HOT 1
- . HOT 2
- Still maintained? HOT 2
- demo url no longer working
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jquery-facebook-multi-friend-selector.