2012-08-16 24 views
0

得到以下錯誤:Facebook的請求,最終目標狀態錯誤

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) {} 
    } 
} 

回答

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

} 
相關問題