Uses of Class
com.restfb.json.JsonObject
-
Packages that use JsonObject Package Description com.restfb Contains types used to interact with the Facebook Graph API.com.restfb.exception Contains exceptions that RestFB may throw while attempting to communicate with the Facebook API endpoints.com.restfb.exception.generator com.restfb.json Repackaging of the minimal-json implementation.com.restfb.types Default implementations of Facebook Graph API Objects.com.restfb.types.ads Special types to interact with the Facebook Marketing API.com.restfb.types.webhook -
-
Uses of JsonObject in com.restfb
Methods in com.restfb with parameters of type JsonObject Modifier and Type Method Description protected 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
Methods in com.restfb.exception that return JsonObject Modifier and Type Method Description JsonObject
ExceptionInformation. getRawError()
JsonObject
FacebookErrorMessageException. getRawErrorJson()
return the raw error as JSON, may benull
Methods in com.restfb.exception that return types with arguments of type JsonObject Modifier and Type Method Description Optional<JsonObject>
FacebookGraphException. getErrorData()
returns the error data as defined here as JsonObject.Methods in com.restfb.exception with parameters of type JsonObject Modifier and Type Method Description protected void
FacebookErrorMessageException. setRawErrorJson(JsonObject rawError)
Constructors in com.restfb.exception with parameters of type JsonObject Constructor Description ExceptionInformation(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. -
Uses of JsonObject in com.restfb.exception.generator
Methods in com.restfb.exception.generator that return JsonObject Modifier and Type Method Description protected JsonObject
DefaultFacebookExceptionGenerator. silentlyCreateObjectFromString(String json)
create aJsonObject
from String and swallow possible JsonExceptionMethods in com.restfb.exception.generator with parameters of type JsonObject Modifier and Type Method Description protected ExceptionInformation
DefaultFacebookExceptionGenerator. createFacebookResponseTypeAndMessageContainer(JsonObject errorObject, Integer httpStatusCode)
-
Uses of JsonObject in com.restfb.json
Methods in com.restfb.json that return JsonObject Modifier and Type Method Description JsonObject
JsonObject. add(String name, boolean value)
Appends a new member to the end of this object, with the specified name and the JSON representation of the specifiedboolean
value.JsonObject
JsonObject. add(String name, double value)
Appends a new member to the end of this object, with the specified name and the JSON representation of the specifieddouble
value.JsonObject
JsonObject. add(String name, float value)
Appends a new member to the end of this object, with the specified name and the JSON representation of the specifiedfloat
value.JsonObject
JsonObject. add(String name, int value)
Appends a new member to the end of this object, with the specified name and the JSON representation of the specifiedint
value.JsonObject
JsonObject. add(String name, long value)
Appends a new member to the end of this object, with the specified name and the JSON representation of the specifiedlong
value.JsonObject
JsonObject. add(String name, JsonValue value)
Appends a new member to the end of this object, with the specified name and the specified JSON value.JsonObject
JsonObject. add(String name, String value)
Appends a new member to the end of this object, with the specified name and the JSON representation of the specified string.JsonObject
JsonObject. asObject()
JsonObject
JsonValue. asObject()
Returns this JSON value asJsonObject
, assuming that this value represents a JSON object.JsonObject
JsonObject. merge(JsonObject object)
Copies all members of the specified object into this object.static JsonObject
Json. object()
Creates a new empty JsonObject.JsonObject
JsonObject. remove(String name)
Removes a member with the specified name from this object.JsonObject
JsonObject. set(String name, boolean value)
Sets the value of the member with the specified name to the JSON representation of the specifiedboolean
value.JsonObject
JsonObject. set(String name, double value)
Sets the value of the member with the specified name to the JSON representation of the specifieddouble
value.JsonObject
JsonObject. set(String name, float value)
Sets the value of the member with the specified name to the JSON representation of the specifiedfloat
value.JsonObject
JsonObject. set(String name, int value)
Sets the value of the member with the specified name to the JSON representation of the specifiedint
value.JsonObject
JsonObject. set(String name, long value)
Sets the value of the member with the specified name to the JSON representation of the specifiedlong
value.JsonObject
JsonObject. set(String name, JsonValue value)
Sets the value of the member with the specified name to the specified JSON value.JsonObject
JsonObject. set(String name, String 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.Methods in com.restfb.json with parameters of type JsonObject Modifier and Type Method Description JsonObject
JsonObject. 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.Constructors in com.restfb.json with parameters of type JsonObject Constructor Description JsonObject(JsonObject object)
Creates a new JsonObject, initialized with the contents of the specified JSON object. -
Uses of JsonObject in com.restfb.types
Methods in com.restfb.types that return JsonObject Modifier and Type Method Description JsonObject
DebugTokenInfo. getMetadata()
General metadata associated with the access token.JsonObject
Page.Settings. getValueAsJsonObject()
Takes the value and converts it into a json object if possible.Methods in com.restfb.types that return types with arguments of type JsonObject Modifier and Type Method Description List<JsonObject>
Insight. getValues()
Data for this Insight as a list ofJsonObject
because its structure can vary depending on which type of Insight you're looking at.Methods in com.restfb.types with parameters of type JsonObject Modifier and Type Method Description boolean
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
Methods in com.restfb.types.ads that return JsonObject Modifier and Type Method Description static JsonObject
RuleFactory. createJsonFromRule(Rule rule)
JsonObject
UserPermission. getAdaccountPermissions()
JsonObject
AdAccountCreationRequest. getAddressInEnglish()
JsonObject
AdAccountCreationRequest. getAppealReason()
JsonObject
AdAccountCreationRequest. getContact()
JsonObject
AdAccountActivity. getCreditNew()
JsonObject
AdAccountActivity. getCreditOld()
JsonObject
AdAccountActivity. getDailySpendLimitNew()
JsonObject
AdAccountActivity. getDailySpendLimitOld()
JsonObject
ReachFrequencySpec. getMaxCampaignDuration()
JsonObject
ReachFrequencySpec. getMaxDaysToFinish()
JsonObject
ReachFrequencySpec. getMinCampaignDuration()
JsonObject
ReachFrequencySpec. getMinReachLimits()
JsonObject
AdBidAdjustments. getMPageTypes()
JsonObject
UserPermission. getPagePermissions()
JsonObject
AdAccountActivity. getSpendCapNew()
JsonObject
AdAccountActivity. getSpendCapOld()
JsonObject
AdAccount. getTosAccepted()
Methods in com.restfb.types.ads that return types with arguments of type JsonObject Modifier and Type Method Description List<JsonObject>
AdAccountCreationRequest. getAdAccountsInfo()
List<JsonObject>
AdAssetFeedSpec. getAssetCustomizationRules()
List<JsonObject>
AdSet. getAttributionSpec()
List<JsonObject>
AdAssetFeedSpec. getCarousels()
List<JsonObject>
TrackingAndConversionWithDefaults. getCustomConversion()
List<JsonObject>
TrackingAndConversionWithDefaults. getCustomTracking()
List<JsonObject>
AdsInsights. getDdaResults()
List<JsonObject>
TrackingAndConversionWithDefaults. getDefaultConversion()
List<JsonObject>
TrackingAndConversionWithDefaults. getDefaultTracking()
List<JsonObject>
AdAccountCreationRequest. getMDisapprovalReasons()
List<JsonObject>
AdAccountCreationRequest. getRequestChangeReasons()
List<JsonObject>
TargetingProspectingAudience. getSources()
Methods in com.restfb.types.ads with parameters of type JsonObject Modifier and Type Method Description static 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)
Method parameters in com.restfb.types.ads with type arguments of type JsonObject Modifier and Type Method Description void
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
Methods in com.restfb.types.webhook that return JsonObject Modifier and Type Method Description JsonObject
FallBackChangeValue. getRawJson()
Methods in com.restfb.types.webhook that return types with arguments of type JsonObject Modifier and Type Method Description List<JsonObject>
ListJsonChangeValue. getValue()
Methods in com.restfb.types.webhook with parameters of type JsonObject Modifier and Type Method Description void
FallBackChangeValue. setRawJson(JsonObject rawJson)
Method parameters in com.restfb.types.webhook with type arguments of type JsonObject Modifier and Type Method Description void
ListJsonChangeValue. setValue(List<JsonObject> value)
Constructors in com.restfb.types.webhook with parameters of type JsonObject Constructor Description FallBackChangeValue(JsonObject json)
-