Open trinhvanbien opened 7 years ago
Log.d(TAG, "facebook: " + object); String strId = object.getString("id"); SharedPreferences prefs = getSharedPreferences("accountInfo", Context.MODE_PRIVATE); SharedPreferences.Editor editor = prefs.edit(); editor.putString("facebookId",strId); editor.commit(); String strEmail = "testxxxxx@gmail.com";//object.getString("email"); String strName = object.getString("name"); String strGender = object.getString("gender"); String strUrl = "https://graph.facebook.com/" + strId + "/picture?type=large";
done
Log.d(TAG, "facebook: " + object); String strId = object.getString("id"); SharedPreferences prefs = getSharedPreferences("accountInfo", Context.MODE_PRIVATE); SharedPreferences.Editor editor = prefs.edit(); editor.putString("facebookId",strId); editor.commit(); String strEmail = "testxxxxx@gmail.com";//object.getString("email"); String strName = object.getString("name"); String strGender = object.getString("gender"); String strUrl = "https://graph.facebook.com/" + strId + "/picture?type=large";