Android 앱에서 딥 링크를 구현하려고하는데 지금까지 내 벽에 올릴 수 있지만 실제로는 google.com에 연결되는 링크 만 게시 할 수 있습니다 (분명히 이것은 테스트 링크입니다). 사용자가 Facebook 앱을 통해 게시물을 클릭 할 때 내 앱으로 이동하기를 원합니다. 안드로이드 프로그래밍에서 나이가 들지 않았으므로 단계별 가이드가 필요합니다.내 Android 용 앱에 게시물 및 딥 링크를 공유하는 방법
개인 Session.StatusCallback mFBStatuscallback = 새로운 Session.StatusCallback() { @Override 공공 무효 호출 (세션 세션, sessionState의 상태, 예외가 필요
private void sharePost() {
// code for sharing the post on facebook
Session session = Session.getActiveSession();
session.requestNewPublishPermissions(new Session.NewPermissionsRequest(this, PERMISSIONS));
Bundle postParams = new Bundle();
postParams.putString("name", "JSON Twitter");
postParams.putString("app_name", "JSON Twitter");
postParams.putString("package", "com.example.jsontwitter");
postParams.putString("url", "com.example.jsontwitter");
postParams.putString("caption", "Hello, anyone there ?!");
postParams.putString("description", "This is a description");
postParams.putString("link", "https://google.com");
postParams.putString("class", "com.example.jsontwitter.MainActivity");
new Request(session, "me/feed", postParams,
HttpMethod.POST, new Request.Callback() {
public void onCompleted(Response response) {
/* handle the result */
}
}).executeAsync();
}
당신은 응용 프로그램 링크를 사용해야합니다. 여기에서 정보를 찾을 수 있습니다 : https://developers.facebook.com/docs/android/share#linking – WizKid