@Override
 public void onCompleted(GraphUser user, Response response) {
   // TODO Auto-generated method stub
   view.dismissLoading();
   if (user == null) {
     view.showError(response.getError().getErrorMessage());
   } else {
     l.d("facebook login result : " + user.getInnerJSONObject().toString());
     SNSLoginData data = app().getUserConfig().loginData;
     data.nickName = user.getLastName() + user.getFirstName();
     data.sns = EXTRA_AUTO_LOGIN_FACEBOOK;
     data.snsHome = user.getLink();
     data.userId = (String) user.getProperty("email");
     try {
       data.profileImage =
           ImageRequest.getProfilePictureUrl(
                   user.getId(),
                   FacebookModel.PROFILE_IMAGE_SIZE,
                   FacebookModel.PROFILE_IMAGE_SIZE)
               .toString();
     } catch (MalformedURLException e) {
       // TODO Auto-generated catch block
       e.printStackTrace();
     }
     prefModel.setAutoLogin(true);
     prefModel.setAutoLoginAction(EXTRA_AUTO_LOGIN_FACEBOOK);
     loginModel.loginSNS(data);
   }
 }
 public void syncFbFriends(View v) {
   ArrayList<Contact> contacts = (ArrayList) MainActivity.db.dbGetAllContacts();
   GraphObjectList<GraphUser> fbFriends = FbLoginFragment.fbObjectList;
   URL url = null;
   for (GraphUser usr : fbFriends) {
     for (Contact contData : contacts) {
       if (contData.getFirstName() == usr.getFirstName()) {
         if (contData.getLastName() == usr.getLastName()) {
           //                        try {
           //                            url = new URL("http://graph.facebook.com/" + "");
           //                        } catch (MalformedURLException){
           //
           //                        }
         }
       }
     }
   }
 }