Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/facebook/8.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
android在facebook墙上发布的风格帖子_Android_Facebook_Facebook Graph Api - Fatal编程技术网

android在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

我正在使用facebook sdk在facebook墙上分享帖子。我已经成功地在facebook的墙上分享了这篇文章,但现在它的风格会是这样吗?

我试着发这样的帖子:

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());
    }
}