class friendListCallback extends Callback<JavaScriptObject> {
@Override
public void onSuccess(JavaScriptObject response){
friendList = new MenuBar(true);
JSOModel jso = response.cast();
if (jso.hasKey("error")) {
Window.alert("Get Friend List Error");
return;
}
final JsArray array = jso.getArray("data");
if (array != null) {
for (int i = 0; i < array.length(); i++) {
JSOModel j = array.get(i).cast();
final String name = j.get("name");
final String id = j.get("id");
friendsName.put(id, name);
loginService.getIdInfo(fbUid, id, new AsyncCallback<OtherPlayerInfo>() {
@Override
public void onFailure(Throwable caught) {