android在facebook墙上发布的风格帖子
我正在使用facebook sdk在facebook墙上分享帖子。我已经成功地在facebook的墙上分享了这篇文章,但现在它的风格会是这样吗? 我试着发这样的帖子:android在facebook墙上发布的风格帖子,android,facebook,facebook-graph-api,Android,Facebook,Facebook Graph Api,我正在使用facebook sdk在facebook墙上分享帖子。我已经成功地在facebook的墙上分享了这篇文章,但现在它的风格会是这样吗? 我试着发这样的帖子: public boolean updateStatus(String accessToken, String message){ String response=""; try { Bundle bundle = new Bundle(); bundle.pu
public boolean updateStatus(String accessToken, String message){
String response="";
try {
Bundle bundle = new Bundle();
bundle.putString("message", "Message here");
bundle.putString("description", "description here");
bundle.putString("name", "abc"); //Name of the link
bundle.putString("link", "www.abc.com");
bundle.putString("caption", "link capation");
bundle.putString("picture", "pic url");
bundle.putString(Facebook.TOKEN,accessToken);
response = facebook.request("me/feed",bundle,"POST");
if(response.indexOf("OAuthException") > -1)
{
if(mAuthAttempts==0)
{
mAuthAttempts++;
fbAuthAndPost(message);
}else{
showToast("OAuthException:");
}
}
} catch (MalformedURLException e) {
Log.e("MALFORMED URL",""+e.getMessage());
showToast("MalformedURLException:"+e.getMessage());
} catch (IOException e) {
Log.e("IOEX",""+e.getMessage());
showToast("IOException:"+e.getMessage());
}
}