0

次のエラーが発生します。

The method request(String, Bundle, AsyncFacebookRunner.RequestListener, Object) in the type AsyncFacebookRunner is not applicable for the arguments (String, Bundle, String, AsyncFacebookRunner)

わかりません。リクエスト内の最終オブジェクトは何ですか?

次のコードがあります(誰か説明してください)

public void UpdateStatusWithAppInfo(String AccessToken)
{
    Bundle params = new Bundle();

    params.putString("message", "Test");
    params.putString("name", "American Virgin");
    params.putString("link", "http://bit.ly/12345");
    params.putString("description", "A Freshman College Girl on a scholarship from an ...");
    params.putString("picture", "http://xxx/MOV1026.jpg");

    mAsyncRunner.request("me/feed", params, "POST", mAsyncRunner.RequestListener
    {
        public void onComplete(String response, Object state){}
        public void onIOException(IOException e, Object state){}
        public void onFileNotFoundException(FileNotFoundException e, Object state) {}
        public void onMalformedURLException(MalformedURLException e, Object state) {}
        public void onFacebookError(FacebookError e, Object state) {}
    }
}
4

1 に答える 1

1

これにこだわっている他の人のために、私はこれをしました:

public void UpdateStatusWithAppInfo(String AccessToken)
{
    Bundle params = new Bundle();

    params.putString("message", "Test");
    params.putString("name", "American Virgin");
    params.putString("link", "http://www.polygonattraction.com/images/lovebirds.jpg");
    params.putString("description", "A Freshman College Girl on a scholarship from an ...");
    params.putString("picture", "http://www.polygonattraction.com/images/lovebirds.jpg");
    params.putString(Facebook.TOKEN, AccessToken);

    mAsyncRunner.request("me/feed", params, "POST", new RequestListener()
    {
        public void onComplete(String response, Object state){System.out.println(response);}
        public void onIOException(IOException e, Object state){}
        public void onFileNotFoundException(FileNotFoundException e, Object state) {}
        public void onMalformedURLException(MalformedURLException e, Object state) {}
        public void onFacebookError(FacebookError e, Object state) {}
    }, null);

}
于 2012-08-16T22:17:43.210 に答える