Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/220.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
无法从android更改图形对象标题_Android_Facebook_Facebook Graph Api - Fatal编程技术网

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

无法从android更改图形对象标题,android,facebook,facebook-graph-api,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("

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

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