Android SDK 버전
- Mutable
- CollectionMapper
- AppCall
- CustomTab
- CustomTabUtils
- DialogFeature
- DialogPresenter
- FacebookDialogBase
- FacebookDialogFragment
- GamingAction
- FacebookWebFallbackDialog
- FragmentWrapper
- InstagramCustomTab
- PlatformServiceClient
- WebDialog
- AnalyticsEvents
- AttributionIdentifiers
- BoltsMeasurementEventListener
- BundleJSONConverter
- CallbackManagerImpl
- FacebookInitProvider
- FacebookRequestErrorClassification
- FacebookSignatureValidator
- FeatureManager
- FetchedAppGateKeepersManager
- FetchedAppSettings
- FetchedAppSettingsManager
- FileLruCache
- ImageDownloader
- ImageRequest
- ImageResponse
- ImageResponseCache
- InstallReferrerUtil
- InternalSettings
- LockOnGetVariable
- Logger
- NativeAppCallAttachmentStore
- NativeProtocol
- ServerProtocol
- SmartLoginOption
- UrlRedirectCache
- Utility
- Validate
- WorkQueue
- MessageDialog
- SendButton
- ShareButton
- ShareButtonBase
- GameRequestDialog
- ShareDialog
- MessageDialogFeature
- VideoUploader
- GameRequestValidation
- CameraEffectFeature
- CameraEffectJSONUtility
- LegacyNativeDialogParameters
- NativeDialogParameters
- ResultProcessor
- ShareConstants
- ShareContentValidation
- ShareDialogFeature
- ShareFeedContent
- ShareInternalUtility
- ShareStoryFeature
- WebDialogParameters
- ShareApi
- ShareBuilder
- Sharer
- Share
- ShareToMessengerParamsBuilder
- Messenger
- MessengerThreadParams
- MessengerUtils
- ShareToMessengerParams
- FacebookAppLinkResolver
- AppLinkData
- AppLinks
- AggregateException
- AppLink
- AppLinkResolver
- AppLinks
- CancellationToken
- CancellationTokenRegistration
- CancellationTokenSource
- Continuation
- ExecutorException
- Task
- TaskCompletionSource
- UnobservedTaskException
- AccessTokenTracker
- AuthenticationTokenTracker
- CustomTabActivity
- CustomTabMainActivity
- FacebookActivity
- FacebookAuthorizationException
- FacebookButtonBase
- FacebookCallback
- FacebookDialog
- FacebookDialogException
- LoginStatusCallback
- WebDialog
- AccessToken
- AccessTokenManager
- AccessTokenSource
- AuthenticationToken
- AuthenticationTokenCache
- AuthenticationTokenClaims
- AuthenticationTokenHeader
- AuthenticationTokenManager
- CallbackManager
- CurrentAccessTokenExpirationBroadcastReceiver
- FacebookBroadcastReceiver
- FacebookContentProvider
- FacebookException
- FacebookGraphResponseException
- FacebookOperationCanceledException
- FacebookRequestError
- FacebookSdk
- FacebookSdkNotInitializedException
- FacebookServiceException
- GraphRequest
- GraphRequestAsyncTask
- GraphRequestBatch
- GraphResponse
- HttpMethod
- LoggingBehavior
- Profile
- ProfileCache
- ProfileManager
- ProfileTracker
- ProgressNoopOutputStream
- ProgressOutputStream
- RequestProgress
- Common
- DeviceRequestsHelper
- EndToEndDumper
- CodeChallengeMethod
- CustomTabLoginMethodHandler
- CustomTabPrefetchHelper
- DeviceAuthDialog
- DeviceAuthMethodHandler
- GetTokenLoginMethodHandler
- KatanaProxyLoginMethodHandler
- LoginBehavior
- LoginClient
- LoginConfiguration
- LoginFragment
- LoginManager
- LoginMethodHandler
- LoginResult
- NativeAppLoginMethodHandler
- NonceUtil
- WebLoginMethodHandler
- WebViewLoginMethodHandler
- DefaultAudience
- LoginTargetApp
- DeviceLoginManager
- Login
- AppGroupCreationContent
- CameraEffectArguments
- CameraEffectTextures
- GameRequestContent
- ShareCameraEffectContent
- ShareContent
- ShareHashtag
- ShareLinkContent
- ShareMedia
- ShareMediaContent
- ShareMessengerActionButton
- ShareMessengerURLActionButton
- ShareModel
- ShareModelBuilder
- SharePhoto
- SharePhotoContent
- ShareStoryContent
- ShareVideo
- ShareVideoContent
- AccessTokenAppIdPair
- AppEvent
- AppEventsConstants
- AppEventsLogger
- AppEventsManager
- FlushResult
- InternalAppEventsLogger
- UserDataStore
- MetadataIndexer
- MetadataRule
- SettingsAPIFields
- AppEventsCAPIManager
- CustomEventField
- AppEventType
- AppEventUserAndAppDataField
- ConversionsAPISection
- ConversionsAPICustomEventField
- ConversionsAPIUserAndAppDataField
- ConversionsAPIEventName
- OtherEventConstants
- AppEventsConversionsAPITransformer
- AppEventsConversionsAPITransformerWebRequests
- CodelessLoggingEventListener
- CodelessManager
- RCTCodelessLoggingEventListener
- ViewIndexer
- Constants
- EventBinding
- ParameterComponent
- PathComponent
- SensitiveUserDataUtils
- UnityReflection
- ViewHierarchy
- EventDeactivationManager
- InAppPurchaseActivityLifecycleTracker
- InAppPurchaseAutoLogger
- InAppPurchaseBillingClientWrapper
- InAppPurchaseEventManager
- InAppPurchaseLoggerManager
- InAppPurchaseManager
- InAppPurchaseSkuDetailsWrapper
- InAppPurchaseUtils
- IntegrityManager
- ActivityLifecycleTracker
- AppEventUtility
- AppEventsLoggerUtility
- AutomaticAnalyticsLogger
- Constants
- FileDownloadTask
- ViewHierarchyConstants
- MTensor
- Model
- ModelManager
- Utils
- OnDeviceProcessingManager
- RemoteServiceWrapper
- RestrictiveDataManager
- SuggestedEventsManager
- ViewOnClickListener
- Core
- GateKeeper
- GateKeeperRuntimeCache
- ExceptionAnalyzer
- InstrumentData
- InstrumentManager
- InstrumentUtility
- ANRDetector
- ANRHandler
- CrashHandler
- AutoHandleExceptions
- CrashShieldHandler
- NoAutoExceptionHandling
- ErrorReportData
- ErrorReportHandler
- ThreadCheckHandler
- Excuse
- ExcusesForDesignViolations
- CertificateUtil
- OidcSecurityUtil
- DeviceLoginButton
- LoginButton
- ProfilePictureView
- ToolTipPopup
- All
public class GraphRequest.Companion
Field Summary
Modifier and Type | Field | Description |
---|---|---|
private final Integer | MAXIMUM_BATCH_SIZE | |
private final String | ACCESS_TOKEN_PARAM | |
private final String | FIELDS_PARAM | |
public final static GraphRequest.Companion | INSTANCE |
Method Summary
Modifier and Type | Method | Description |
---|---|---|
final String | getDefaultBatchApplicationId() | Gets the default Facebook application ID that will be used to submit batched requests. |
final Unit | setDefaultBatchApplicationId(String applicationId) | Sets the default application ID that will be used to submit batched requests if none of those requests specifies an access token. |
final GraphRequest | newDeleteObjectRequest(AccessToken accessToken, String id, GraphRequest.Callback callback) | Creates a new Request configured to delete a resource through the Graph API. |
final GraphRequest | newMeRequest(AccessToken accessToken, GraphRequest.GraphJSONObjectCallback callback) | Creates a new Request configured to retrieve a user's own profile. |
final GraphRequest | newPostRequest(AccessToken accessToken, String graphPath, JSONObject graphObject, GraphRequest.Callback callback) | Creates a new Request configured to post a GraphObject to a particular graph path, to either create or update the object at that path. |
final GraphRequest | newPostRequestWithBundle(AccessToken accessToken, String graphPath, Bundle parameters, GraphRequest.Callback callback) | Creates a new Request configured to post some parameters to a particular graph path. |
final GraphRequest | newMyFriendsRequest(AccessToken accessToken, GraphRequest.GraphJSONArrayCallback callback) | Creates a new Request configured to retrieve a user's friend list. |
final GraphRequest | newGraphPathRequest(AccessToken accessToken, String graphPath, GraphRequest.Callback callback) | Creates a new Request configured to retrieve a particular graph path. |
final GraphRequest | newPlacesSearchRequest(AccessToken accessToken, Location location, Integer radiusInMeters, Integer resultsLimit, String searchText, GraphRequest.GraphJSONArrayCallback callback) | Creates a new Request that is configured to perform a search for places near a specified location via the Graph API. |
final GraphRequest | newUploadPhotoRequest(AccessToken accessToken, String graphPath, Bitmap image, String caption, Bundle params, GraphRequest.Callback callback) | Creates a new Request configured to upload a photo to the specified graph path. |
final GraphRequest | newUploadPhotoRequest(AccessToken accessToken, String graphPath, File file, String caption, Bundle params, GraphRequest.Callback callback) | Creates a new Request configured to upload a photo to the specified graph path. |
final GraphRequest | newUploadPhotoRequest(AccessToken accessToken, String graphPath, Uri photoUri, String caption, Bundle params, GraphRequest.Callback callback) | Creates a new Request configured to upload a photo to the specified graph path. |
final GraphRequest | newCustomAudienceThirdPartyIdRequest(AccessToken accessToken, Context context, String applicationId, GraphRequest.Callback callback) | Creates a new Request configured to retrieve an App User ID for the app's Facebook user. |
final GraphRequest | newCustomAudienceThirdPartyIdRequest(AccessToken accessToken, Context context, GraphRequest.Callback callback) | Creates a new Request configured to retrieve an App User ID for the app's Facebook user. |
final HttpURLConnection | toHttpConnection(GraphRequest requests) | Serializes one or more requests but does not execute them. |
final HttpURLConnection | toHttpConnection(Collection<GraphRequest> requests) | Serializes one or more requests but does not execute them. |
final HttpURLConnection | toHttpConnection(GraphRequestBatch requests) | Serializes one or more requests but does not execute them. |
final GraphResponse | executeAndWait(GraphRequest request) | Executes a single request on the current thread and blocks while waiting for the response. |
final List<GraphResponse> | executeBatchAndWait(GraphRequest requests) | Executes requests on the current thread as a single batch and blocks while waiting for the response. |
final List<GraphResponse> | executeBatchAndWait(Collection<GraphRequest> requests) | Executes requests as a single batch on the current thread and blocks while waiting for the responses. |
final List<GraphResponse> | executeBatchAndWait(GraphRequestBatch requests) | Executes requests on the current thread as a single batch and blocks while waiting for the responses. |
final GraphRequestAsyncTask | executeBatchAsync(GraphRequest requests) | Executes requests as a single batch asynchronously. |
final GraphRequestAsyncTask | executeBatchAsync(Collection<GraphRequest> requests) | Executes requests as a single batch asynchronously. |
final GraphRequestAsyncTask | executeBatchAsync(GraphRequestBatch requests) | Executes requests as a single batch asynchronously. |
final List<GraphResponse> | executeConnectionAndWait(HttpURLConnection connection, Collection<GraphRequest> requests) | Executes requests that have already been serialized into an HttpURLConnection. |
final List<GraphResponse> | executeConnectionAndWait(HttpURLConnection connection, GraphRequestBatch requests) | Executes requests that have already been serialized into an HttpURLConnection. |
final GraphRequestAsyncTask | executeConnectionAsync(HttpURLConnection connection, GraphRequestBatch requests) | Asynchronously executes requests that have already been serialized into an HttpURLConnection. |
final GraphRequestAsyncTask | executeConnectionAsync(Handler callbackHandler, HttpURLConnection connection, GraphRequestBatch requests) | Asynchronously executes requests that have already been serialized into an HttpURLConnection. |
final Integer | getMAXIMUM_BATCH_SIZE() | The maximum number of requests that can be submitted in a single batch. |
final String | getACCESS_TOKEN_PARAM() | |
final String | getFIELDS_PARAM() |
Method Detail
getDefaultBatchApplicationId
final StringgetDefaultBatchApplicationId()
Gets the default Facebook application ID that will be used to submit batched requests. Batched requests require an application ID, so either at least one request in a batch must provide an access token or the application ID must be specified explicitly.
setDefaultBatchApplicationId
final UnitsetDefaultBatchApplicationId(String applicationId)
Sets the default application ID that will be used to submit batched requests if none of those requests specifies an access token. Batched requests require an application ID, so either at least one request in a batch must specify an access token or the application ID must be specified explicitly.
Parameters:
applicationId
- the Facebook application ID to use for batched requests if none can be determinednewDeleteObjectRequest
final GraphRequestnewDeleteObjectRequest(AccessToken accessToken, String id, GraphRequest.Callback callback)
Creates a new Request configured to delete a resource through the Graph API.
Parameters:
accessToken
- the access token to use, or nullid
- the id of the object to deletecallback
- a callback that will be called when the request is completed to handle success or error conditionsnewMeRequest
final GraphRequestnewMeRequest(AccessToken accessToken, GraphRequest.GraphJSONObjectCallback callback)
Creates a new Request configured to retrieve a user's own profile.
Parameters:
accessToken
- the access token to use, or nullcallback
- a callback that will be called when the request is completed to handle success or error conditionsnewPostRequest
final GraphRequestnewPostRequest(AccessToken accessToken, String graphPath, JSONObject graphObject, GraphRequest.Callback callback)
Creates a new Request configured to post a GraphObject to a particular graph path, to either create or update the object at that path.
Parameters:
accessToken
- the access token to use, or nullgraphPath
- the graph path to retrieve, create, or deletegraphObject
- the graph object to create or updatecallback
- a callback that will be called when the request is completed to handle success or error conditionsnewPostRequestWithBundle
final GraphRequestnewPostRequestWithBundle(AccessToken accessToken, String graphPath, Bundle parameters, GraphRequest.Callback callback)
Creates a new Request configured to post some parameters to a particular graph path.
Parameters:
accessToken
- the access token to use, or nullgraphPath
- the graph path to retrieve, create, or deleteparameters
- the parameters to be carried in the requestcallback
- a callback that will be called when the request is completed to handle success or error conditionsnewMyFriendsRequest
final GraphRequestnewMyFriendsRequest(AccessToken accessToken, GraphRequest.GraphJSONArrayCallback callback)
Creates a new Request configured to retrieve a user's friend list.
Parameters:
accessToken
- the access token to use, or nullcallback
- a callback that will be called when the request is completed to handle success or error conditionsnewGraphPathRequest
final GraphRequestnewGraphPathRequest(AccessToken accessToken, String graphPath, GraphRequest.Callback callback)
Creates a new Request configured to retrieve a particular graph path.
Parameters:
accessToken
- the access token to use, or nullgraphPath
- the graph path to retrievecallback
- a callback that will be called when the request is completed to handle success or error conditionsnewPlacesSearchRequest
final GraphRequestnewPlacesSearchRequest(AccessToken accessToken, Location location, Integer radiusInMeters, Integer resultsLimit, String searchText, GraphRequest.GraphJSONArrayCallback callback)
Creates a new Request that is configured to perform a search for places near a specified location via the Graph API. At least one of location or searchText must be specified.
Parameters:
accessToken
- the access token to use, or nulllocation
- the location around which to search; only the latitude and longitude components of the location are meaningfulradiusInMeters
- the radius around the location to search, specified in meters; this is ignored if no location is specifiedresultsLimit
- the maximum number of results to returnsearchText
- optional text to search for as part of the name or type of an objectcallback
- a callback that will be called when the request is completed to handle success or error conditionsnewUploadPhotoRequest
final GraphRequestnewUploadPhotoRequest(AccessToken accessToken, String graphPath, Bitmap image, String caption, Bundle params, GraphRequest.Callback callback)
Creates a new Request configured to upload a photo to the specified graph path.
Parameters:
accessToken
- the access token to use, or nullgraphPath
- the graph path to use, defaults to me/photosimage
- the bitmap image to uploadcaption
- the user generated caption for the photo, can be nullparams
- the parameters, can be nullcallback
- a callback that will be called when the request is completed to handle success or error conditions, can be nullnewUploadPhotoRequest
final GraphRequestnewUploadPhotoRequest(AccessToken accessToken, String graphPath, File file, String caption, Bundle params, GraphRequest.Callback callback)
Creates a new Request configured to upload a photo to the specified graph path. The photo will be read from the specified file.
Parameters:
accessToken
- the access token to use, or nullgraphPath
- the graph path to use, defaults to me/photosfile
- the file containing the photo to uploadcaption
- the user generated caption for the photo, can be nullparams
- the parameters, can be nullcallback
- a callback that will be called when the request is completed to handle success or error conditions, can be nullnewUploadPhotoRequest
final GraphRequestnewUploadPhotoRequest(AccessToken accessToken, String graphPath, Uri photoUri, String caption, Bundle params, GraphRequest.Callback callback)
Creates a new Request configured to upload a photo to the specified graph path. The photo will be read from the specified Uri.
Parameters:
accessToken
- the access token to use, or nullgraphPath
- the graph path to use, defaults to me/photosphotoUri
- the file:// or content:// Uri to the photo on devicecaption
- the user generated caption for the photo, can be nullparams
- the parameters, can be nullcallback
- a callback that will be called when the request is completed to handle success or error conditions, can be nullnewCustomAudienceThirdPartyIdRequest
final GraphRequestnewCustomAudienceThirdPartyIdRequest(AccessToken accessToken, Context context, String applicationId, GraphRequest.Callback callback)
Creates a new Request configured to retrieve an App User ID for the app's Facebook user. Callers will send this ID back to their own servers, collect up a set to create a Facebook Custom Audience with, and then use the resultant Custom Audience to target ads.
The GraphObject in the response will include a "custom_audience_third_party_id" property, with the value being the ID retrieved. This ID is an encrypted encoding of the Facebook user's ID and the invoking Facebook app ID. Multiple calls with the same user will return different IDs, thus these IDs cannot be used to correlate behavior across devices or applications, and are only meaningful when sent back to Facebook for creating Custom Audiences.
The ID retrieved represents the Facebook user identified in the following way: if the specified access token (or active access token if
null
) is valid, the ID will represent the user associated with the active access token; otherwise the ID will represent the user logged into the native Facebook app on the device. A null
ID will be provided into the callback if a) there is no native Facebook app, b) no one is logged into it, or c) the app has previously called FacebookSdk.setLimitEventAndDataUsage ;} with true
for this user. You must call this method from a background thread for it to work properly.Parameters:
accessToken
- the access token to issue the Request on, or null If there is no logged-in Facebook user, null is the expected choice.context
- the Application context from which the app ID will be pulled, and from which the 'attribution ID' for the Facebook user is determined.applicationId
- explicitly specified Facebook App ID.callback
- a callback that will be called when the request is completed to handle success or error conditions.newCustomAudienceThirdPartyIdRequest
final GraphRequestnewCustomAudienceThirdPartyIdRequest(AccessToken accessToken, Context context, GraphRequest.Callback callback)
Creates a new Request configured to retrieve an App User ID for the app's Facebook user. Callers will send this ID back to their own servers, collect up a set to create a Facebook Custom Audience with, and then use the resultant Custom Audience to target ads.
The GraphObject in the response will include a "custom_audience_third_party_id" property, with the value being the ID retrieved. This ID is an encrypted encoding of the Facebook user's ID and the invoking Facebook app ID. Multiple calls with the same user will return different IDs, thus these IDs cannot be used to correlate behavior across devices or applications, and are only meaningful when sent back to Facebook for creating Custom Audiences.
The ID retrieved represents the Facebook user identified in the following way: if the specified access token (or active access token if
null
) is valid, the ID will represent the user associated with the active access token; otherwise the ID will represent the user logged into the native Facebook app on the device. A null
ID will be provided into the callback if a) there is no native Facebook app, b) no one is logged into it, or c) the app has previously called FacebookSdk.setLimitEventAndDataUsage with true
for this user. You must call this method from a background thread for it to work properly.Parameters:
accessToken
- the access token to issue the Request on, or null If there is no logged-in Facebook user, null is the expected choice.context
- the Application context from which the app ID will be pulled, and from which the 'attribution ID' for the Facebook user is determined.callback
- a callback that will be called when the request is completed to handle success or error conditions.toHttpConnection
final HttpURLConnectiontoHttpConnection(GraphRequest requests)
Serializes one or more requests but does not execute them. The resulting HttpURLConnection can be executed explicitly by the caller.
Parameters:
requests
- one or more Requests to serializetoHttpConnection
final HttpURLConnectiontoHttpConnection(Collection<GraphRequest> requests)
Serializes one or more requests but does not execute them. The resulting HttpURLConnection can be executed explicitly by the caller.
Parameters:
requests
- one or more Requests to serializetoHttpConnection
final HttpURLConnectiontoHttpConnection(GraphRequestBatch requests)
Serializes one or more requests but does not execute them. The resulting HttpURLConnection can be executed explicitly by the caller.
Parameters:
requests
- a RequestBatch to serializeexecuteAndWait
final GraphResponseexecuteAndWait(GraphRequest request)
Executes a single request on the current thread and blocks while waiting for the response.
This should only be used if you have transitioned off the UI thread.
Parameters:
request
- the Request to executeexecuteBatchAndWait
final List<GraphResponse> executeBatchAndWait(GraphRequest requests)
Executes requests on the current thread as a single batch and blocks while waiting for the response.
This should only be used if you have transitioned off the UI thread.
Parameters:
requests
- the Requests to executeexecuteBatchAndWait
final List<GraphResponse> executeBatchAndWait(Collection<GraphRequest> requests)
Executes requests as a single batch on the current thread and blocks while waiting for the responses.
This should only be used if you have transitioned off the UI thread.
Parameters:
requests
- the Requests to executeexecuteBatchAndWait
final List<GraphResponse> executeBatchAndWait(GraphRequestBatch requests)
Executes requests on the current thread as a single batch and blocks while waiting for the responses.
This should only be used if you have transitioned off the UI thread.
Parameters:
requests
- the batch of Requests to executeexecuteBatchAsync
final GraphRequestAsyncTaskexecuteBatchAsync(GraphRequest requests)
Executes requests as a single batch asynchronously. This function will return immediately, and the requests will be processed on a separate thread. In order to process results of a request, or determine whether a request succeeded or failed, a callback must be specified (see the .setCallback method).
This should only be called from the UI thread.
Parameters:
requests
- the Requests to executeexecuteBatchAsync
final GraphRequestAsyncTaskexecuteBatchAsync(Collection<GraphRequest> requests)
Executes requests as a single batch asynchronously. This function will return immediately, and the requests will be processed on a separate thread. In order to process results of a request, or determine whether a request succeeded or failed, a callback must be specified (see the .setCallback method).
This should only be called from the UI thread.
Parameters:
requests
- the Requests to executeexecuteBatchAsync
final GraphRequestAsyncTaskexecuteBatchAsync(GraphRequestBatch requests)
Executes requests as a single batch asynchronously. This function will return immediately, and the requests will be processed on a separate thread. In order to process results of a request, or determine whether a request succeeded or failed, a callback must be specified (see the .setCallback method).
This should only be called from the UI thread.
Parameters:
requests
- the RequestBatch to executeexecuteConnectionAndWait
final List<GraphResponse> executeConnectionAndWait(HttpURLConnection connection, Collection<GraphRequest> requests)
Executes requests that have already been serialized into an HttpURLConnection. No validation is done that the contents of the connection actually reflect the serialized requests, so it is the caller's responsibility to ensure that it will correctly generate the desired responses.
This should only be called if you have transitioned off the UI thread.
Parameters:
connection
- the HttpURLConnection that the requests were serialized intorequests
- the requests represented by the HttpURLConnectionexecuteConnectionAndWait
final List<GraphResponse> executeConnectionAndWait(HttpURLConnection connection, GraphRequestBatch requests)
Executes requests that have already been serialized into an HttpURLConnection. No validation is done that the contents of the connection actually reflect the serialized requests, so it is the caller's responsibility to ensure that it will correctly generate the desired responses.
This should only be called if you have transitioned off the UI thread.
Parameters:
connection
- the HttpURLConnection that the requests were serialized intorequests
- the RequestBatch represented by the HttpURLConnectionexecuteConnectionAsync
final GraphRequestAsyncTaskexecuteConnectionAsync(HttpURLConnection connection, GraphRequestBatch requests)
Asynchronously executes requests that have already been serialized into an HttpURLConnection. No validation is done that the contents of the connection actually reflect the serialized requests, so it is the caller's responsibility to ensure that it will correctly generate the desired responses. This function will return immediately, and the requests will be processed on a separate thread. In order to process results of a request, or determine whether a request succeeded or failed, a callback must be specified (see the .setCallback method).
This should only be called from the UI thread.
Parameters:
connection
- the HttpURLConnection that the requests were serialized intorequests
- the requests represented by the HttpURLConnectionexecuteConnectionAsync
final GraphRequestAsyncTaskexecuteConnectionAsync(Handler callbackHandler, HttpURLConnection connection, GraphRequestBatch requests)
Asynchronously executes requests that have already been serialized into an HttpURLConnection. No validation is done that the contents of the connection actually reflect the serialized requests, so it is the caller's responsibility to ensure that it will correctly generate the desired responses. This function will return immediately, and the requests will be processed on a separate thread. In order to process results of a request, or determine whether a request succeeded or failed, a callback must be specified (see the .setCallback method)
This should only be called from the UI thread.
Parameters:
callbackHandler
- a Handler that will be used to post calls to the callback for each request; if null, a Handler will be instantiated on the calling threadconnection
- the HttpURLConnection that the requests were serialized intorequests
- the requests represented by the HttpURLConnectiongetMAXIMUM_BATCH_SIZE
final IntegergetMAXIMUM_BATCH_SIZE()
The maximum number of requests that can be submitted in a single batch. This limit is enforced on the service side by the Facebook platform, not by the Request class.
getACCESS_TOKEN_PARAM
final StringgetACCESS_TOKEN_PARAM()
getFIELDS_PARAM
final StringgetFIELDS_PARAM()