Im develop a app to post a simple text to facebook.here is the code I’m using..
Bundle parameters = new Bundle();
parameters.putString("message", msgWillPost);
response = mFacebook.request("me/feed", parameters, "POST");
it work… but the problem I’m facing now is when the “msgWillPost” length too longer, then it will return error. here is the error:
{“error”:{“type”:”OAuthException”,”message”:”(#1) An unknown error occurred”}}
which I get return from response.
May I konw isn’t Facebook request have any limit character to post? or it was other issue. Thank you.
P/S: sorry about my english hope u guys understand what I’m talking about.
Thanks.
Regards,
WynixToo
I know status updates must be less than 420 characters. Have you tried 419 characters to make sure that post succeeds?
If this is really the issue (which is weird that the error message isn’t very helpful), then you’ll probably want to do input validation in your app prior to posting to Facebook.