无法从android更改图形对象标题

时间:2013-01-16 14:25:17

标签: android facebook facebook-graph-api

我正在尝试在我的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();

1 个答案:

答案 0 :(得分:1)

image / title / description是OG对象的所有属性,不能由请求的参数指定。它们必须通过url端点处的“og:*”元属性定义(在您的示例中为http://namespace.com/app/myobject.html)。