发布墙贴VKontakte,VK-SDK时出错

时间:2014-06-05 00:50:37

标签: java android api vk

我面对这样的问题......我通过createWallPost,简单的文本,从几个字符到一个非常大的文本的任何长度的纯文本发布在墙上...发布一次。发布一次,相同的记录会给出错误。 ......我很困惑。你能告诉我为什么吗?

发布记录的方法:

api.createWallPost(account.user_id, text, null, null, false, false, false, null, null, new Long(0), new Long(0), null, null);

记录错误: 06-05 06:33:57.930: I/Kate.Api(14959): code=200 06-05 06:33:57.930: I/Kate.Api(14959): response={"error":{"error_code":100,"error_msg":"One of the parameters specified was missing or invalid: invalid message param","request_params":[{"key":"oauth","value":"1"},{"key":"method","value":"wall.post"},{"key":"access_token","value":"18ef018fcc8966be5c568be9044a5d68d3341e6caedcdd6b4a1e11abe1c1f41e77be8ced4fed1d847a04f"},{"key":"owner_id","value":"203334145"},{"key":"publish_date","value":"0"},{"key":"v","value":"5.5"}]}} 06-05 06:33:57.930: W/System.err(14959): com.perm.kate.api.KException: One of the parameters specified was missing or invalid: invalid message param 06-05 06:33:57.930: W/System.err(14959): at com.perm.kate.api.Api.checkError(Api.java:45) 06-05 06:33:57.930: W/System.err(14959): at com.perm.kate.api.Api.sendRequest(Api.java:101) 06-05 06:33:57.930: W/System.err(14959): at com.perm.kate.api.Api.createWallPost(Api.java:1203) 06-05 06:33:57.930: W/System.err(14959): at com.screen.Social_content$5.run(Social_content.java:203)

1 个答案:

答案 0 :(得分:1)

你不能每秒向vk api发出超过三个请求。有时即使第三个请求也没有通过。