My code:
public void postOnWall(String msg) {
try {
String response = facebookClient.request("me");
Bundle parameters = new Bundle();
parameters.putString("message", msg);
response = facebookClient.request("me/feed", parameters,
"POST");
Log.e("Tests", "got response: " + response);
if (response == null || response.equals("") ||
response.equals("false")) {
Log.e("Error", "Blank response");
}
} catch(Exception e) {
e.printStackTrace();
}
}
my error:
08-19 17:45:20.774: ERROR/Tests(5118): got response: {“error”:{“type”:”OAuthException”,”message”:”(#341) Feed action request limit reached”}}
What is the problem here?
They’re rate-limiting the number of “Feed actions” you can take. Basically they don’t want your app spamming people’s walls, so they limit the number of times you can do this.
For testing, you should use a test user, which has higher limits.