-4
이것은 버튼을 클릭 할 때 실행되는 코드입니다.Facebook 통합 인증 오류 : - 잘못된 키 해시입니다. 키 해시 K/MLFPcpd4lHR56HLtn9eYQ3pjQ가 저장된 키 해시와 일치하지 않습니다.
public void handleSharing() { if (FacebookDialog.canPresentShareDialog(getApplicationContext(), FacebookDialog.ShareDialogFeature.SHARE_DIALOG)) { // Publish the post using the Share Dialog FacebookDialog shareDialog = new FacebookDialog.ShareDialogBuilder(MainActivity.this) .setLink("https://developers.facebook.com/android") .setApplicationName("SharingApp") .build(); uiHelper.trackPendingDialogCall(shareDialog.present()); } else { // Fallback. For example, publish the post using the Feed Dialog publishFeedDialog(); }