Skip to content

Commit

Permalink
updated connectplugin.java
Browse files Browse the repository at this point in the history
  • Loading branch information
stevengill committed Oct 17, 2012
1 parent 5bc37ad commit 3e6814d
Show file tree
Hide file tree
Showing 9 changed files with 19 additions and 14 deletions.
33 changes: 19 additions & 14 deletions src/android/ConnectPlugin.java
Original file line number Diff line number Diff line change
Expand Up @@ -276,20 +276,25 @@ public void onComplete(Bundle values) {
Log.d(TAG, "authorized");
Log.d(TAG, values.toString());

try {
JSONObject o = new JSONObject(this.fba.facebook.request("/me"));
this.fba.userId = o.getString("id");
this.fba.success(getResponse(), this.fba.callbackId);
} catch (MalformedURLException e) {

e.printStackTrace();
} catch (IOException e) {

e.printStackTrace();
} catch (JSONException e) {

e.printStackTrace();
}
Thread t = new Thread(new Runnable() {
public void run() {
try {
JSONObject o = new JSONObject(fba.facebook.request("/me"));
fba.userId = o.getString("id");
fba.success(getResponse(), fba.callbackId);
} catch (MalformedURLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (JSONException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
});
t.start();
}

public void onFacebookError(FacebookError e) {
Expand Down
Binary file modified src/android/facebook-android-sdk.jar
Binary file not shown.
Binary file removed src/android/res/drawable-hdpi/close.png
Binary file not shown.
Binary file removed src/android/res/drawable-hdpi/facebook_icon.png
Binary file not shown.
Binary file removed src/android/res/drawable-ldpi/close.png
Binary file not shown.
Binary file removed src/android/res/drawable-ldpi/facebook_icon.png
Binary file not shown.
Binary file removed src/android/res/drawable-xhdpi/close.png
Binary file not shown.
Binary file removed src/android/res/drawable/close.png
Binary file not shown.
Binary file removed src/android/res/drawable/facebook_icon.png
Binary file not shown.

0 comments on commit 3e6814d

Please sign in to comment.