我正在尝试在我的Facebook时间轴上发布图形对象,标题和说明没有显示,这是下面的代码。有什么建议吗?
Bundle postParams = new Bundle();
postParams.putString("offer", "http://namespace.com/app/myobject.html");
postParams.putBoolean("fb:explicitly_shared", true);
postParams.putString("image", _offer.getImgpath());
postParams.putString("title", _offer.getName());
postParams.putString("description",_offer.getDescription());
Request request = new Request(session, "me/namespace:share", postParams,
HttpMethod.POST, callback);
RequestAsyncTask task = new RequestAsyncTask(request);
task.execute();
答案 0 :(得分:1)
image / title / description是OG对象的所有属性,不能由请求的参数指定。它们必须通过url端点处的“og:*”元属性定义(在您的示例中为http://namespace.com/app/myobject.html)。