AsyncFacebookRunner.RequestListener
คลาสนี้ไม่มีให้ใช้งานใน SDK เวอร์ชั่นล่าสุดอีกต่อไป
เวอร์ชั่นที่ใหม่กว่าของคลาสนี้พร้อมแล้ว ตรวจสอบได้ เวอร์ชั่นล่าสุด

Callback interface for API requests.

Each method includes a 'state' parameter that identifies the calling request. It will be set to the value passed when originally calling the request method, or null if none was passed.

This interface is deprecated. See Facebook and Request for more info.

แพ็คเกจ:android
วิธีการแบบอินสแตนซ์
onComplete(String, Object)

Called when a request completes with the given response.

Executed by a background thread: do not update the UI in this method.

public void onComplete(String response, Object state)
พารามิเตอร์คำอธิบาย
response
state
onIOException(IOException, Object)

Called when a request has a network or request error.

Executed by a background thread: do not update the UI in this method.

public void onIOException(IOException e, Object state)
พารามิเตอร์คำอธิบาย
e
state
onFileNotFoundException(FileNotFoundException, Object)

Called when a request fails because the requested resource is invalid or does not exist.

Executed by a background thread: do not update the UI in this method.

public void onFileNotFoundException(FileNotFoundException e, Object state)
พารามิเตอร์คำอธิบาย
e
state
onMalformedURLException(MalformedURLException, Object)

Called if an invalid graph path is provided (which may result in a malformed URL).

Executed by a background thread: do not update the UI in this method.

public void onMalformedURLException(MalformedURLException e, Object state)
พารามิเตอร์คำอธิบาย
e
state
onFacebookError(FacebookError, Object)

Called when the server-side Facebook method fails.

Executed by a background thread: do not update the UI in this method.

public void onFacebookError(FacebookError e, Object state)
พารามิเตอร์คำอธิบาย
e
state