我正在使用我的Android應用程序進行Facebook集成。我可以通過使用「stream.publish」打開對話框發送附件。有沒有打開對話框發佈的方式? 我正在使用以下方法。使用Facebook Android SDK發佈沒有打開對話框的附件?
請給我任何想法。
postParams.put("seriesname", "Commented during the TV show"+" '"+series+"'");
postParams.put("description", text);
parameters.putString("attachment", "{\"name\":\""+postParams.get("seriesname")+"\","
+"\"href\":\""+"http://www.google.com\","+"\"description\":\""+postParams.get("description")+"\"}");
mFacebook.dialog(FacebookComments.this, "stream.publish", parameters, new SampleDialogListener());
Log.d("FACEBOOK RESPONSE", response);
if (response == null || response.equals("")
|| response.equals("false")) {
Log.v("Error", "Blank response");
}
}
} catch (Exception e) {
Log.e("Facebook", "Error: " + e.getMessage());
}
}
我更新了我的answer..check它。 – Venky