I am trying to implement app link for Android. And my steps are : 1. Created facebook app and using that app id creating session to implement further api calls 2. To create applink object in android my api call is
new Request(
Session.getActiveSession(),
"app/app_link_hosts",
null,
HttpMethod.GET,
new Request.Callback() {
public void onCompleted(Response response) {
try {
JSONObject obj = new JSONObject(response.getRawResponse());
//
Log.d("My App", obj.toString());
} catch (Throwable t) {
Log.e("My App", "Could not parse malformed JSON: \"" + response.getRawResponse() + "\"");
}
}
}
).executeAsync();
but i am getting empty response. Plz correct me if i am wrong. Thanks in advance