我正在做一个Request
路径正在/me/<app_namespace>:<action>
使用Request
android上的对象的地方,如下所示:
MyOpenGraphAction action = GraphObject.Factory.create(MyOpenGraphAction.class);
MyGraphObject object = GraphObject.Factory.create(MyGraphObject.class);
object.setUrl("<myurl>");
action.setMyObject(object);
Request request = new Request(session, "me/myapp:myaction", null, HttpMethod.POST, callback);
request.setGraphObject(action);
new RequestAsyncTask(request).execute();
这是我的 graphObject 和动作定义:
private interface MyGraphObject extends GraphObject {
public String getUrl();
public void setUrl(String url);
public String getId();
public void setId(String id);
}
private interface MyOpenGraphAction extends OpenGraphAction {
public MyGraphObject getMyObject();
public void setMyObject(MyGraphObject myObject);
}
问题是它没有给出任何错误。但该动作未发布在时间线上。