public final void onCompleted(Response paramResponse) { FacebookRequestError localFacebookRequestError = paramResponse.getError(); if (localFacebookRequestError != null) { Toast.makeText(this.ˊ, localFacebookRequestError.getErrorMessage(), 0).show(); } else if ((paramResponse.getGraphObject() != null) && (paramResponse.getGraphObject().getInnerJSONObject() != null)) { ArrayList localArrayList = new ArrayList(); try { JSONArray localJSONArray = paramResponse.getGraphObject().getInnerJSONObject().getJSONObject(this.ˋ.ʼ).getJSONArray("image"); for (int i = 0; i < localJSONArray.length(); i++) localArrayList.add(localJSONArray.getJSONObject(i).getString("url")); OpenGraphAction localOpenGraphAction = ϳ.ˊ(this.ˋ, localArrayList); if (this.ˎ.equals("facebook")) { this.ˋ.ͺ.put("Destination", "facebook"); Context localContext = this.ˊ.getApplicationContext(); FacebookDialog.ShareDialogFeature[] arrayOfShareDialogFeature = new FacebookDialog.ShareDialogFeature[1]; arrayOfShareDialogFeature[0] = FacebookDialog.ShareDialogFeature.SHARE_DIALOG; if (FacebookDialog.canPresentShareDialog(localContext, arrayOfShareDialogFeature)) { this.ˊ.setPropertiesForFacebookSharing(this.ˋ.ͺ); FacebookDialog localFacebookDialog = new FacebookDialog.OpenGraphActionDialogBuilder(this.ˊ, localOpenGraphAction, this.ˋ.ʽ.ʼ).build(); this.ˊ.getUiHelper().trackPendingDialogCall(localFacebookDialog.present()); } else { ϳ.ˎ(this.ˊ, this.ˋ, (String)localArrayList.get(0)); } } else if (this.ˎ.equals("facebook-messenger")) { ϳ.ˊ(this.ˊ, this.ˋ, localOpenGraphAction); } } catch (JSONException localJSONException) { localJSONException.printStackTrace(); } } this.ˏ.dismiss(); }