Facebook状态更新 [英] facebook status update
本文介绍了Facebook状态更新的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
public class NetRockersUpdate extends AsyncTask {
@Override
protected String doInBackground(String ... msg){
// TODO自动生成的方法stub
nra =(NetRockersApp)getApplication();
String result =Status Successful Successfulfully;
Bundle parameters = new Bundle();
parameters.putString(test,msg [0]);
parameters.putString(method,stream.publish);
try {
nra.facebook.request(parameters);
} catch(FileNotFoundException e){
// TODO自动生成的catch块
e.printStackTrace();
} catch(MalformedURLException e){
// TODO自动生成的catch块
e.printStackTrace();
} catch(IOException e){
// TODO自动生成的catch块
e.printStackTrace();
}
返回结果;
}
}
解决方案
查看以下所有帖子:我已解释如何在用户界面上发帖:
在墙上发布 ..
I am having problem in updating status on facebook. I am using Facebook sdk, the problem is that my status is getting post but not showing text. Here is my code ---->
public class NetRockersUpdate extends AsyncTask{
@Override
protected String doInBackground(String... msg) {
// TODO Auto-generated method stub
nra = (NetRockersApp)getApplication();
String result = "Status Posted Successfully";
Bundle parameters = new Bundle();
parameters.putString("test", msg[0]);
parameters.putString("method", "stream.publish");
try {
nra.facebook.request(parameters);
} catch (FileNotFoundException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (MalformedURLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
return result;
}
}
解决方案
Check all the below post : I explained how to Post on User wall:
Post to user Wall with Description,title,caption and link
这篇关于Facebook状态更新的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文