我怎么没有登录-DialogBox的数据发布到Facebook的墙?我怎么、数据、DialogBox、Facebook

2023-09-07 11:23:08 作者:低调Dé华丽

我工作的一个Android应用程序,我们进入编辑框一些文本。所有我想要做的就是简单地发送该类型(即 edittext.gettext())Facebook的文字作为我的状态。最重要的是我不想要一个Facebook的对话框弹出,相反,只发送消息作为状态没有一个对话框。有什么办法,我可以不发布一个对话框?

I am working on an Android app where we enter some text in edit box. All I want to do is simply send the text which typed (i.e. edittext.gettext()) to Facebook as my status. The important thing is I don't want a Facebook dialog box to pop up, instead, just send the message as status without a dialog box. Is there any way I could post without a dialog box?

推荐答案

我不知道这是使用全给你,

I am not sure this is use full to you,

mAsyncRunner.request(null, params, "POST", new PhotoUploadListener(), null);   


mAsyncRunner.request("me/photos", params, "POST", new PhotoUploadListener(), null);

和还是否存在,因为该设备的现有的Facebook应用程序的您的问题,那么你可能已经做出强制登录

And still if your problem exists because of an existing Facebook app in the device, then you might have make the login compulsory.

在这片您code的,

do this  

public void loginAndPostToWall(){
 facebook.authorize(this, PERMISSIONS,-1, new LoginDialogListener());
}

它应该做的伎俩。

It should do the trick.