如何发布消息在Facebook上墙? [英] How to post message on FaceBook wall?

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

问题描述

我想张贴在Facebook涂鸦墙留言,我的Facebook集成SDK在我的项目,我是codeD这样的,但在Facebook上墙没有消息显示,但信息是从我的应用程序来.. 。
这是我使用过帐,

 公共无效updateStatus(字符串的accessToken,字符串消息){       的System.out.println(MES是+消息);
       束束=新包();
       bundle.putString(消息,消息);
       facebook.dialog(这一点,stream.publish,捆绑,这一点);}


解决方案

我有同样的问题。我从什么是Facebook的下面提到的文档搜索中找到< STRONG>的消息的 facebook.dialog()法的领域:

消息:此场将于2011年7月12日被忽略的消息pre灌注的文本字段,用户将键入要符合Facebook平台政策,您的应用程序可能只有在设置此字段。早期用户在工作流手动生成的内容。大多数应用程序不应设置这个。

您需要使用替代以下内容:

  Facebook.request(ME /饲料,捆绑,POST);

i want post a message on a facebook wall, i integrated facebook sdk in my project and i was coded like this, but there is no message display on facebook wall, but the information is coming from my Application... this is the i am using for posting,

public void updateStatus(String accessToken, String message){  

       System.out.println("mes is "+message);           
       Bundle bundle = new Bundle();     
       bundle.putString("message", message);                    
       facebook.dialog(this, "stream.publish", bundle, this);

}

解决方案

I had the same problem. What I found from the search what is mentioned below in the Facebook documentation of the message field of the facebook.dialog() method:

message: "This field will be ignored on July 12, 2011 The message to prefill the text field that the user will type in. To be compliant with Facebook Platform Policies, your application may only set this field if the user manually generated the content earlier in the workflow. Most applications should not set this."

You need to use the following instead:

Facebook.request("me/feed", bundle, "POST");

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

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