发布文字的Facebook墙上 [英] Post text to Facebook Wall

查看:156
本文介绍了发布文字的Facebook墙上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

林开发一个应用程序来发布一个简单的文本facebook.here是code我使用..

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");

它的工作......但我现在面临的问题是,当msgWillPost长度也越长,那么它会返回错误。这里是错误:

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:

{错误:{类型:OAuthException,消息:(#1)出现未知错误}}

{"error":{"type":"OAuthException","message":"(#1) An unknown error occurred"}}

这是我得到的响应回报。
可我知道的全部不是Facebook的要求有任何限制字符后?或者是其他的问题。谢谢你。

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:很抱歉,我的英语,希望能跟大家明白我在说什么。
谢谢你。

P/S: sorry about my english hope u guys understand what I'm talking about. Thanks.

问候,

WynixToo

推荐答案

我知道状态更新必须少于420个字符。您是否尝试过419个字符,以确保成功后?

I know status updates must be less than 420 characters. Have you tried 419 characters to make sure that post succeeds?

如果这是真正的问题(这是奇怪的是,错误消息不是非常有帮助的),那么你可能要发布至Facebook之前做输入验证在你的应用程序。

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.

这篇关于发布文字的Facebook墙上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆