Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想知道通过 Facebook API 创建事件的返回函数是什么?
如果事件创建成功,它会返回event id,但我如何在代码中显示事件已成功创建?
event id
谁能帮我 ?
您应该检查响应状态。
//Do Facebook api call Response r = WS.url("graphapi").get().get(); if (r.getStatus() == 200 ) { Logger.info("api success"); } else { Logger.error("api error"); }