Uses of Class
com.restfb.json.JsonObject
Package
Description
Contains types used to interact with the Facebook
Graph API.
Contains exceptions that RestFB may throw while attempting to communicate with the Facebook API endpoints.
Repackaging of the minimal-json implementation.
Default implementations of Facebook
Graph API Objects.
Special types to interact with the Facebook Marketing
API.
-
Uses of JsonObject in com.restfb
Modifier and TypeMethodDescriptionprotected Object
DefaultJsonMapper.toJavaType
(ReflectionUtils.FieldWithAnnotation<Facebook> fieldWithAnnotation, JsonObject jsonObject, String facebookFieldName) Extracts JSON data for a field according to itsFacebook
annotation and returns it converted to the proper Java type. -
Uses of JsonObject in com.restfb.exception
Modifier and TypeMethodDescriptionExceptionInformation.getRawError()
FacebookErrorMessageException.getRawErrorJson()
return the raw error as JSON, may benull
Modifier and TypeMethodDescriptionFacebookGraphException.getErrorData()
returns the error data as defined here as JsonObject.Modifier and TypeMethodDescriptionprotected void
FacebookErrorMessageException.setRawErrorJson
(JsonObject rawError) ModifierConstructorDescriptionExceptionInformation
(Integer errorCode, Integer errorSubcode, Integer httpStatusCode, String type, String message, String userTitle, String userMessage, Boolean isTransient, JsonObject rawError) extended constructor to build a set of information used by the exception generatorExceptionInformation
(Integer errorCode, Integer httpStatusCode, String message, JsonObject rawError) basic constructor to build a set of information used by the exception generatorFacebookGraphException
(String errorType, String errorMessage, Integer errorCode, Integer errorSubcode, Integer httpStatusCode, String errorUserTitle, String errorUserMessage, Boolean isTransient, JsonObject rawError) Creates an exception with the given error type and message.FacebookOAuthException
(String errorType, String errorMessage, Integer errorCode, Integer errorSubcode, Integer httpStatusCode, String userTitle, String userMessage, Boolean isTransient, JsonObject rawError) Creates an exception with the given error type and message.FacebookQueryParseException
(String errorType, String errorMessage, Integer errorCode, Integer errorSubcode, Integer httpStatusCode, String userTitle, String userMessage, Boolean isTransient, JsonObject rawError) Creates an exception with the given error type and message.FacebookResponseStatusException
(Integer errorCode, String errorMessage, JsonObject rawError) Creates an exception with the given message and error code.ThreadsApiException
(String errorType, String errorMessage, Integer errorCode, Integer errorSubcode, Integer httpStatusCode, boolean isTransient, JsonObject rawError) -
Uses of JsonObject in com.restfb.exception.generator
Modifier and TypeMethodDescriptionprotected JsonObject
DefaultFacebookExceptionGenerator.silentlyCreateObjectFromString
(String json) create aJsonObject
from String and swallow possible JsonExceptionModifier and TypeMethodDescriptionprotected ExceptionInformation
DefaultFacebookExceptionGenerator.createFacebookResponseTypeAndMessageContainer
(JsonObject errorObject, Integer httpStatusCode) -
Uses of JsonObject in com.restfb.json
Modifier and TypeMethodDescriptionAppends a new member to the end of this object, with the specified name and the JSON representation of the specifiedboolean
value.Appends a new member to the end of this object, with the specified name and the JSON representation of the specifieddouble
value.Appends a new member to the end of this object, with the specified name and the JSON representation of the specifiedfloat
value.Appends a new member to the end of this object, with the specified name and the JSON representation of the specifiedint
value.Appends a new member to the end of this object, with the specified name and the JSON representation of the specifiedlong
value.Appends a new member to the end of this object, with the specified name and the specified JSON value.Appends a new member to the end of this object, with the specified name and the JSON representation of the specified string.JsonObject.asObject()
JsonValue.asObject()
Returns this JSON value asJsonObject
, assuming that this value represents a JSON object.JsonObject.merge
(JsonObject object) Copies all members of the specified object into this object.static JsonObject
Json.object()
Creates a new empty JsonObject.Removes a member with the specified name from this object.Sets the value of the member with the specified name to the JSON representation of the specifiedboolean
value.Sets the value of the member with the specified name to the JSON representation of the specifieddouble
value.Sets the value of the member with the specified name to the JSON representation of the specifiedfloat
value.Sets the value of the member with the specified name to the JSON representation of the specifiedint
value.Sets the value of the member with the specified name to the JSON representation of the specifiedlong
value.Sets the value of the member with the specified name to the specified JSON value.Sets the value of the member with the specified name to the JSON representation of the specified string.static JsonObject
JsonObject.unmodifiableObject
(JsonObject object) Returns an unmodifiable JsonObject for the specified one.Modifier and TypeMethodDescriptionJsonObject.merge
(JsonObject object) Copies all members of the specified object into this object.static JsonObject
JsonObject.unmodifiableObject
(JsonObject object) Returns an unmodifiable JsonObject for the specified one.ModifierConstructorDescriptionJsonObject
(JsonObject object) Creates a new JsonObject, initialized with the contents of the specified JSON object. -
Uses of JsonObject in com.restfb.types
Modifier and TypeMethodDescriptionDebugTokenInfo.getMetadata()
General metadata associated with the access token.Page.Settings.getValueAsJsonObject()
Takes the value and converts it into a json object if possible.Modifier and TypeMethodDescriptionInsight.getValues()
Data for this Insight as a list ofJsonObject
because its structure can vary depending on which type of Insight you're looking at.Modifier and TypeMethodDescriptionboolean
Insight.addValue
(JsonObject json) boolean
Insight.removeValue
(JsonObject json) void
DebugTokenInfo.setMetadata
(JsonObject metadata) General metadata associated with the access token. -
Uses of JsonObject in com.restfb.types.ads
Modifier and TypeMethodDescriptionstatic JsonObject
RuleFactory.createJsonFromRule
(Rule rule) UserPermission.getAdaccountPermissions()
AdAccountCreationRequest.getAddressInEnglish()
AdAccountCreationRequest.getAppealReason()
AdAccountCreationRequest.getContact()
AdAccountActivity.getCreditNew()
AdAccountActivity.getCreditOld()
AdAccountActivity.getDailySpendLimitNew()
AdAccountActivity.getDailySpendLimitOld()
ReachFrequencySpec.getMaxCampaignDuration()
ReachFrequencySpec.getMaxDaysToFinish()
ReachFrequencySpec.getMinCampaignDuration()
ReachFrequencySpec.getMinReachLimits()
AdBidAdjustments.getMPageTypes()
UserPermission.getPagePermissions()
AdAccountActivity.getSpendCapNew()
AdAccountActivity.getSpendCapOld()
AdAccount.getTosAccepted()
Modifier and TypeMethodDescriptionAdAccountCreationRequest.getAdAccountsInfo()
AdAssetFeedSpec.getAssetCustomizationRules()
AdSet.getAttributionSpec()
AdAssetFeedSpec.getCarousels()
TrackingAndConversionWithDefaults.getCustomConversion()
TrackingAndConversionWithDefaults.getCustomTracking()
AdsInsights.getDdaResults()
TrackingAndConversionWithDefaults.getDefaultConversion()
TrackingAndConversionWithDefaults.getDefaultTracking()
AdAccountCreationRequest.getMDisapprovalReasons()
AdAccountCreationRequest.getRequestChangeReasons()
TargetingProspectingAudience.getSources()
Modifier and TypeMethodDescriptionstatic Rule
RuleFactory.createRuleFromJson
(JsonObject ruleJson) void
UserPermission.setAdaccountPermissions
(JsonObject adaccountPermissions) void
AdAccountCreationRequest.setAddressInEnglish
(JsonObject addressInEnglish) void
AdAccountCreationRequest.setAppealReason
(JsonObject appealReason) void
AdAccountCreationRequest.setContact
(JsonObject contact) void
AdAccountActivity.setCreditNew
(JsonObject creditNew) void
AdAccountActivity.setCreditOld
(JsonObject creditOld) void
AdAccountActivity.setDailySpendLimitNew
(JsonObject dailySpendLimitNew) void
AdAccountActivity.setDailySpendLimitOld
(JsonObject dailySpendLimitOld) void
ReachFrequencySpec.setMaxCampaignDuration
(JsonObject maxCampaignDuration) void
ReachFrequencySpec.setMaxDaysToFinish
(JsonObject maxDaysToFinish) void
ReachFrequencySpec.setMinCampaignDuration
(JsonObject minCampaignDuration) void
ReachFrequencySpec.setMinReachLimits
(JsonObject minReachLimits) void
AdBidAdjustments.setMPageTypes
(JsonObject mPageTypes) void
UserPermission.setPagePermissions
(JsonObject pagePermissions) void
AdAccountActivity.setSpendCapNew
(JsonObject spendCapNew) void
AdAccountActivity.setSpendCapOld
(JsonObject spendCapOld) void
AdAccount.setTosAccepted
(JsonObject tosAccepted) Modifier and TypeMethodDescriptionvoid
AdAccountCreationRequest.setAdAccountsInfo
(List<JsonObject> adAccountsInfo) void
AdAssetFeedSpec.setAssetCustomizationRules
(List<JsonObject> assetCustomizationRules) void
AdSet.setAttributionSpec
(List<JsonObject> attributionSpec) void
AdAssetFeedSpec.setCarousels
(List<JsonObject> carousels) void
TrackingAndConversionWithDefaults.setCustomConversion
(List<JsonObject> customConversion) void
TrackingAndConversionWithDefaults.setCustomTracking
(List<JsonObject> customTracking) void
AdsInsights.setDdaResults
(List<JsonObject> ddaResults) void
TrackingAndConversionWithDefaults.setDefaultConversion
(List<JsonObject> defaultConversion) void
TrackingAndConversionWithDefaults.setDefaultTracking
(List<JsonObject> defaultTracking) void
AdAccountCreationRequest.setMDisapprovalReasons
(List<JsonObject> mDisapprovalReasons) void
AdAccountCreationRequest.setRequestChangeReasons
(List<JsonObject> requestChangeReasons) void
TargetingProspectingAudience.setSources
(List<JsonObject> sources) -
Uses of JsonObject in com.restfb.types.webhook