Class Application

All Implemented Interfaces:
HasCreatedTime, Serializable

public class Application
extends CategorizedFacebookType
implements HasCreatedTime
Since:
1.6
Author:
Mark Allen
See Also:
Serialized Form
  • Constructor Details

  • Method Details

    • getSupportedPlatforms

      All the platform the app supports
      Returns:
      All the platform the app supports
    • addSupportedPlatform

      public boolean addSupportedPlatform​(String platform)
    • removeSupportedPlatform

      public boolean removeSupportedPlatform​(String platform)
    • getAndroidSdkErrorCategories

      Error configuration for Android SDK.
      Returns:
      Error configuration for Android SDK.
    • addAndroidSdkErrorCategory

      public boolean addAndroidSdkErrorCategory​(Application.MobileSdkErrorCategory mobileSdkErrorCategory)
    • removeAndroidSdkErrorCategory

      public boolean removeAndroidSdkErrorCategory​(Application.MobileSdkErrorCategory mobileSdkErrorCategory)
    • getIosSdkErrorCategories

      Error configuration for iOS SDK.
      Returns:
      Error configuration for Android SDK.
    • addIosSdkErrorCategory

      public boolean addIosSdkErrorCategory​(Application.MobileSdkErrorCategory mobileSdkErrorCategory)
    • removeIosSdkErrorCategory

      public boolean removeIosSdkErrorCategory​(Application.MobileSdkErrorCategory mobileSdkErrorCategory)
    • getAppDomains

      Domains and subdomains this app can use.
      Returns:
      Domains and subdomains this app can use
    • addAppDomain

      public boolean addAppDomain​(String appDomain)
    • removeAppDomain

      public boolean removeAppDomain​(String appDomain)
    • getAuthReferralExtendedPerms

      Extended permissions that a person can choose to grant when Authenticated Referrals are enabled.
      Returns:
      Extended permissions that a person can choose to grant when Authenticated Referrals are enabled
    • addAuthReferralExtendedPerm

      public boolean addAuthReferralExtendedPerm​(String authReferralExtendedPerm)
    • removeAuthReferralExtendedPerm

      public boolean removeAuthReferralExtendedPerm​(String authReferralExtendedPerm)
    • getAuthReferralFriendPerms

      Basic friends permissions that a user must grant when Authenticated Referrals are enabled.
      Returns:
      Basic friends permissions that a user must grant when Authenticated Referrals are enabled
    • addAuthReferralFriendPerm

      public boolean addAuthReferralFriendPerm​(String authReferralFriendPerm)
    • removeAuthReferralFriendPerm

      public boolean removeAuthReferralFriendPerm​(String authReferralFriendPerm)
    • getAuthReferralUserPerms

      Basic user permissions that a user must grant when Authenticated Referrals are enabled.
      Returns:
      Basic user permissions that a user must grant when Authenticated Referrals are enabled
    • addAuthReferralUserPerm

      public boolean addAuthReferralUserPerm​(String authReferralUserPerm)
    • removeAuthReferralUserPerm

      public boolean removeAuthReferralUserPerm​(String authReferralUserPerm)
    • getIosBundleId

      Bundle ID of the associated iOS app.
      Returns:
      Bundle ID of the associated iOS app
    • addIosBundleId

      public boolean addIosBundleId​(String iosBundleId)
    • removeIosBundleId

      public boolean removeIosBundleId​(String iosBundleId)
    • getAndroidKeyHash

      The app key hash for this app's Android native implementation.
      Returns:
      The app key hash for this app's Android native implementation.
    • setAndroidKeyHash

      public void setAndroidKeyHash​(String androidKeyHash)
      The app key hash for this app's Android native implementation.
    • getAppAdDebugInfo

      App ad related information to help debugging.
      Returns:
      App ad related information to help debugging.
    • setAppAdDebugInfo

      App ad related information to help debugging.
    • getAppEventsFeatureBitmask

      Bitmask of on/off settings for various App Events related features.
      Returns:
      Bitmask of on/off settings for various App Events related features
    • setAppEventsFeatureBitmask

      public void setAppEventsFeatureBitmask​(Long appEventsFeatureBitmask)
      Bitmask of on/off settings for various App Events related features.
    • getAppInstallTracked

      Whether the app install is trackable or not.
      Returns:
      Whether the app install is trackable or not
    • setAppInstallTracked

      public void setAppInstallTracked​(Boolean appInstallTracked)
      Whether the app install is trackable or not.
    • getAppName

      public String getAppName()
      App name.
      Returns:
      App name
    • setAppName

      public void setAppName​(String appName)
      App name.
    • getAppType

      public Long getAppType()
      App type.
      Returns:
      App type
    • setAppType

      public void setAppType​(Long appType)
      App type.
    • getAuthDialogDataHelpUrl

      The URL of a special landing page that helps people who are using an app begin publishing Open Graph activity
      Returns:
      The URL of a special landing page that helps people who are using an app begin publishing Open Graph activity
    • setAuthDialogDataHelpUrl

      public void setAuthDialogDataHelpUrl​(String authDialogDataHelpUrl)
      The URL of a special landing page that helps people who are using an app begin publishing Open Graph activity activity
    • getAuthDialogHeadline

      One line description of an app that appears in the Login Dialog
      Returns:
      One line description of an app that appears in the Login Dialog
    • setAuthDialogHeadline

      public void setAuthDialogHeadline​(String authDialogHeadline)
      One line description of an app that appears in the Login Dialog
    • getAuthDialogPermsExplanation

      The text to explain why an app needs additional permissions. This appears in the Login Dialog
      Returns:
      The text to explain why an app needs additional permissions. This appears in the Login Dialog
    • setAuthDialogPermsExplanation

      public void setAuthDialogPermsExplanation​(String authDialogPermsExplanation)
      The text to explain why an app needs additional permissions. This appears in the Login Dialog
    • getAuthReferralDefaultActivityPrivacy

      The default privacy setting selected for Open Graph activities in the Auth Dialog.
      Returns:
      The default privacy setting selected for Open Graph activities in the Auth Dialog
    • setAuthReferralDefaultActivityPrivacy

      public void setAuthReferralDefaultActivityPrivacy​(String authReferralDefaultActivityPrivacy)
      The default privacy setting selected for Open Graph activities in the Auth Dialog.
    • getAuthReferralEnabled

      Indicates whether Authenticated Referrals are enabled.
      Returns:
      Indicates whether Authenticated Referrals are enabled
    • setAuthReferralEnabled

      public void setAuthReferralEnabled​(Long authReferralEnabled)
      Indicates whether Authenticated Referrals are enabled.
    • getAuthReferralResponseType

      The format that an app receives for the authentication token from the Login Dialog
    • setAuthReferralResponseType

      public void setAuthReferralResponseType​(String authReferralResponseType)
      The format that an app receives for the authentication token from the Login Dialog
    • getCanvasFluidHeight

      Indicates whether the app uses fluid or settable height values for Canvas.
      Returns:
      Indicates whether the app uses fluid or settable height values for Canvas
    • setCanvasFluidHeight

      public void setCanvasFluidHeight​(Boolean canvasFluidHeight)
      Indicates whether the app uses fluid or settable height values for Canvas.
    • getCanvasFluidWidth

      Indicates whether the app uses fluid or fixed width values for Canvas.
      Returns:
      Indicates whether the app uses fluid or fixed width values for Canvas
    • setCanvasFluidWidth

      public void setCanvasFluidWidth​(Long canvasFluidWidth)
      Indicates whether the app uses fluid or fixed width values for Canvas.
    • getCanvasUrl

      public String getCanvasUrl()
      The non-secure URL from which Canvas app content is loaded.
      Returns:
      The non-secure URL from which Canvas app content is loaded
    • setCanvasUrl

      public void setCanvasUrl​(String canvasUrl)
      The non-secure URL from which Canvas app content is loaded.
    • getCompany

      public String getCompany()
      The company the app belongs to.
      Returns:
      The company the app belongs to
    • setCompany

      public void setCompany​(String company)
      The company the app belongs to.
    • getConfiguredIosSso

      True if the app has configured Single Sign On on iOS.
      Returns:
      True if the app has configured Single Sign On on iOS
    • setConfiguredIosSso

      public void setConfiguredIosSso​(Boolean configuredIosSso)
      True if the app has configured Single Sign On on iOS.
    • getContactEmail

      Email address listed for people using the app to contact developers.
      Returns:
      Email address listed for people using the app to contact developers
    • setContactEmail

      public void setContactEmail​(String contactEmail)
      Email address listed for people using the app to contact developers.
    • getContext

      Social context for the app.
      Returns:
      Social context for the app
    • setContext

      public void setContext​(Application.ApplicationContext context)
      Social context for the app.
    • getCreatedTime

      public Date getCreatedTime()
      Timestamp that indicates when the app was created.
      Specified by:
      getCreatedTime in interface HasCreatedTime
      Returns:
      Timestamp that indicates when the app was created
    • setCreatedTime

      public void setCreatedTime​(Date createdTime)
      Timestamp that indicates when the app was created.
    • getCreatorUid

      User ID of the creator of this app
    • setCreatorUid

      public void setCreatorUid​(String creatorUid)
      User ID of the creator of this app
    • getDailyActiveUsers

      The number of daily active users the app has.
      Returns:
      The number of daily active users the app has
    • setDailyActiveUsers

      public void setDailyActiveUsers​(Long dailyActiveUsers)
      The number of daily active users the app has.
    • getDailyActiveUsersRank

      Ranking of this app vs other apps comparing daily active users.
      Returns:
      Ranking of this app vs other apps comparing daily active users
    • setDailyActiveUsersRank

      public void setDailyActiveUsersRank​(Long dailyActiveUsersRank)
      Ranking of this app vs other apps comparing daily active users.
    • getDeauthCallbackUrl

      URL that is pinged whenever a person removes the app.
      Returns:
      URL that is pinged whenever a person removes the app
    • setDeauthCallbackUrl

      public void setDeauthCallbackUrl​(String deauthCallbackUrl)
      URL that is pinged whenever a person removes the app.
    • getDefaultShareMode

      The platform that should be used to share content.
      Returns:
      The platform that should be used to share content
    • setDefaultShareMode

      public void setDefaultShareMode​(String defaultShareMode)
      The platform that should be used to share content.
    • getDescription

      The description of the app, as provided by the developer.
      Returns:
      The description of the app, as provided by the developer.
    • setDescription

      public void setDescription​(String description)
      The description of the app, as provided by the developer.
    • getHostingUrl

      Webspace created with one of our hosting partners for this app.
      Returns:
      Webspace created with one of our hosting partners for this app
    • setHostingUrl

      public void setHostingUrl​(String hostingUrl)
      Webspace created with one of our hosting partners for this app.
    • getIconUrl

      public String getIconUrl()
      The URL of this app's icon.
      Returns:
      The URL of this app's icon
    • setIconUrl

      public void setIconUrl​(String iconUrl)
      The URL of this app's icon.
    • getIosSupportsSystemAuth

      Whether to support the iOS integrated Login Dialog.
      Returns:
      Whether to support the iOS integrated Login Dialog
    • setIosSupportsSystemAuth

      public void setIosSupportsSystemAuth​(Boolean iosSupportsSystemAuth)
      Whether to support the iOS integrated Login Dialog.
    • getIosSupportsNativeProxyAuthFlow

      Whether to support the native proxy login flow.
      Returns:
      Whether to support the native proxy login flow
    • setIosSupportsNativeProxyAuthFlow

      public void setIosSupportsNativeProxyAuthFlow​(Boolean iosSupportsNativeProxyAuthFlow)
      Whether to support the native proxy login flow.
    • getIpadAppStoreId

      ID of the app in the iPad App Store.
      Returns:
      ID of the app in the iPad App Store
    • setIpadAppStoreId

      public void setIpadAppStoreId​(String ipadAppStoreId)
      ID of the app in the iPad App Store.
    • setIphoneAppStoreId

      public void setIphoneAppStoreId​(String iphoneAppStoreId)
      ID of the app in the iPhone App Store.
    • getIphoneAppStoreId

      ID of the app in the iPhone App Store.
      Returns:
      ID of the app in the iPhone App Store
    • getLink

      public String getLink()
      A link to the app on Facebook.
      Returns:
      A link to the app on Facebook
    • setLink

      public void setLink​(String link)
      A link to the app on Facebook.
    • getLogoUrl

      public String getLogoUrl()
      The URL of the app's logo.
      Returns:
      The URL of the app's logo
    • setLogoUrl

      public void setLogoUrl​(String logoUrl)
      The URL of the app's logo.
    • getMobileProfileSectionUrl

      Mobile URL of the app section on a person's profile.
      Returns:
      Mobile URL of the app section on a person's profile
    • setMobileProfileSectionUrl

      public void setMobileProfileSectionUrl​(String mobileProfileSectionUrl)
      Mobile URL of the app section on a person's profile.
    • getMobileWebUrl

      URL to which Mobile users will be directed when using the app.
      Returns:
      URL to which Mobile users will be directed when using the app
    • setMobileWebUrl

      public void setMobileWebUrl​(String mobileWebUrl)
      URL to which Mobile users will be directed when using the app.
    • getMonthlyActiveUsers

      The number of monthly active users the app has.
      Returns:
      The number of monthly active users the app has
    • setMonthlyActiveUsers

      public void setMonthlyActiveUsers​(String monthlyActiveUsers)
      The number of monthly active users the app has.
    • getMonthlyActiveUsersRank

      Ranking of this app vs other apps comparing monthly active users.
      Returns:
      Ranking of this app vs other apps comparing monthly active users
    • setMonthlyActiveUsersRank

      public void setMonthlyActiveUsersRank​(Integer monthlyActiveUsersRank)
      Ranking of this app vs other apps comparing monthly active users.
    • getNamespace

      public String getNamespace()
      The string appended to apps.facebook.com/ to navigate to the app's canvas page
      Returns:
      The string appended to apps.facebook.com/ to navigate to the app's canvas page
    • setNamespace

      public void setNamespace​(String namespace)
      The string appended to apps.facebook.com/ to navigate to the app's canvas page
    • getObjectStoreUrls

      public com.restfb.types.Application.ApplicationObjectStoreURLs getObjectStoreUrls()
      Mobile store URLs for the app.
      Returns:
      Mobile store URLs for the app
    • setObjectStoreUrls

      public void setObjectStoreUrls​(com.restfb.types.Application.ApplicationObjectStoreURLs objectStoreUrls)
      Mobile store URLs for the app.
    • getPageTabDefaultName

      The title of the app when used in a Page Tab.
      Returns:
      The title of the app when used in a Page Tab
    • setPageTabDefaultName

      public void setPageTabDefaultName​(String pageTabDefaultName)
      The title of the app when used in a Page Tab.
    • getPageTabUrl

      The non-secure URL from which Page Tab app content is loaded.
      Returns:
      The non-secure URL from which Page Tab app content is loaded
    • setPageTabUrl

      public void setPageTabUrl​(String pageTabUrl)
      The non-secure URL from which Page Tab app content is loaded.
    • getPrivacyPolicyUrl

      The URL that links to a Privacy Policy for the app.
      Returns:
      The URL that links to a Privacy Policy for the app
    • setPrivacyPolicyUrl

      public void setPrivacyPolicyUrl​(String privacyPolicyUrl)
      The URL that links to a Privacy Policy for the app.
    • getProfileSectionUrl

      URL of the app section on a user's profile for the desktop site.
      Returns:
      URL of the app section on a user's profile for the desktop site
    • setProfileSectionUrl

      public void setProfileSectionUrl​(String profileSectionUrl)
      URL of the app section on a user's profile for the desktop site.
    • getRestrictions

      public com.restfb.types.Application.ApplicationRestrictionInfo getRestrictions()
      Demographic restrictions for the app.
      Returns:
      Demographic restrictions for the app
    • setRestrictions

      public void setRestrictions​(com.restfb.types.Application.ApplicationRestrictionInfo restrictions)
      Demographic restrictions for the app.
    • getSecureCanvasUrl

      The secure URL from which Canvas app content is loaded.
      Returns:
      The secure URL from which Canvas app content is loaded
    • setSecureCanvasUrl

      public void setSecureCanvasUrl​(String secureCanvasUrl)
      The secure URL from which Canvas app content is loaded.
    • getSecurePageTabUrl

      The secure URL from which Page Tab app content is loaded.
      Returns:
      The secure URL from which Page Tab app content is loaded
    • setSecurePageTabUrl

      public void setSecurePageTabUrl​(String securePageTabUrl)
      The secure URL from which Page Tab app content is loaded.
    • getServerIpWhitelist

      App requests must originate from this comma-separated list of IP addresses.
      Returns:
      App requests must originate from this comma-separated list of IP addresses
    • setServerIpWhitelist

      public void setServerIpWhitelist​(String serverIpWhitelist)
      App requests must originate from this comma-separated list of IP addresses.
    • getSocialDiscovery

      Indicates whether app usage stories show up in the Ticker or News Feed.
      Returns:
      Indicates whether app usage stories show up in the Ticker or News Feed
    • setSocialDiscovery

      public void setSocialDiscovery​(Long socialDiscovery)
      Indicates whether app usage stories show up in the Ticker or News Feed.
    • getSubcategory

      The subcategory the app can be found under.
      Returns:
      The subcategory the app can be found under
    • setSubcategory

      public void setSubcategory​(String subcategory)
      The subcategory the app can be found under.
    • getSupportsApprequestsFastAppSwitch

      public com.restfb.types.Application.ApplicationFastAppSwitch getSupportsApprequestsFastAppSwitch()
      Indicates whether the app should do a fast-app-switch to the Facebook app to show the app requests dialog.
      Returns:
      Indicates whether the app should do a fast-app-switch to the Facebook app to show the app requests dialog
    • setSupportsApprequestsFastAppSwitch

      public void setSupportsApprequestsFastAppSwitch​(com.restfb.types.Application.ApplicationFastAppSwitch supportsApprequestsFastAppSwitch)
      Indicates whether the app should do a fast-app-switch to the Facebook app to show the app requests dialog.
    • getSupportsAttribution

      Indicates whether the app has not opted out of app install tracking.
      Returns:
      Indicates whether the app has not opted out of app install tracking
    • setSupportsAttribution

      public void setSupportsAttribution​(Boolean supportsAttribution)
      Indicates whether the app has not opted out of app install tracking.
    • getSupportsImplicitSdkLogging

      Indicates whether the app has not opted out of the mobile SDKs sending data on SDK interactions
      Returns:
      Indicates whether the app has not opted out of the mobile SDKs sending data on SDK interactions
    • setSupportsImplicitSdkLogging

      public void setSupportsImplicitSdkLogging​(Boolean supportsImplicitSdkLogging)
      Indicates whether the app has not opted out of the mobile SDKs sending data on SDK interactions
    • getSuppressNativeIosGdp

      Whether to suppress the native iOS Login Dialog
      Returns:
      Whether to suppress the native iOS Login Dialog
    • setSuppressNativeIosGdp

      public void setSuppressNativeIosGdp​(Boolean suppressNativeIosGdp)
      Whether to suppress the native iOS Login Dialog
    • getTermsOfServiceUrl

      URL to Terms of Service that appears in the Login Dialog
      Returns:
      URL to Terms of Service that appears in the Login Dialog
    • setTermsOfServiceUrl

      public void setTermsOfServiceUrl​(String termsOfServiceUrl)
      URL to Terms of Service that appears in the Login Dialog
    • getUrlSchemeSuffix

      URL scheme suffix
      Returns:
      URL scheme suffix
    • setUrlSchemeSuffix

      public void setUrlSchemeSuffix​(String urlSchemeSuffix)
      URL scheme suffix
    • getUseLegacyAuth

      Does the app use the legacy auth method?
      Returns:
      Does the app use the legacy auth method?
    • setUseLegacyAuth

      public void setUseLegacyAuth​(Boolean useLegacyAuth)
      Does the app use the legacy auth method?
    • getUserSupportEmail

      Main contact email for this app where people can receive support.
      Returns:
      Main contact email for this app where people can receive support
    • setUserSupportEmail

      public void setUserSupportEmail​(String userSupportEmail)
      Main contact email for this app where people can receive support.
    • getUserSupportUrl

      URL shown in the Canvas footer that people can visit to get support for the app.
      Returns:
      URL shown in the Canvas footer that people can visit to get support for the app
    • setUserSupportUrl

      public void setUserSupportUrl​(String userSupportUrl)
      URL shown in the Canvas footer that people can visit to get support for the app.
    • getWebsiteUrl

      URL of a website that integrates with this app.
      Returns:
      URL of a website that integrates with this app
    • setWebsiteUrl

      public void setWebsiteUrl​(String websiteUrl)
      URL of a website that integrates with this app.
    • getWeeklyActiveUsers

      The number of weekly active users the app has.
      Returns:
      The number of weekly active users the app has
    • setWeeklyActiveUsers

      public void setWeeklyActiveUsers​(String weeklyActiveUsers)
      The number of weekly active users the app has.
    • getGdpv4Enabled

      Indicates whether Login Version 4 is enabled for this app.
      Returns:
      Indicates whether Login Version 4 is enabled for this app
    • setGdpv4Enabled

      public void setGdpv4Enabled​(Boolean gdpv4Enabled)
      Indicates whether Login Version 4 is enabled for this app.
    • getGdpv4NuxEnabled

      Indicates whether the New User Experience for login button must be shown or not.
      Returns:
      Indicates whether the New User Experience for login button must be shown or not
    • setGdpv4NuxEnabled

      public void setGdpv4NuxEnabled​(Boolean gdpv4NuxEnabled)
      Indicates whether the New User Experience for login button must be shown or not.
    • getGdpv4NuxContent

      Localized content for the login new user experience.
      Returns:
      Localized content for the login new user experience
    • setGdpv4NuxContent

      public void setGdpv4NuxContent​(String gdpv4NuxContent)
      Localized content for the login new user experience.
    • getLastUsedTime

      last used time of this object by the current viewer
      Returns:
      last used time of this object by the current viewer
    • setLastUsedTime

      public void setLastUsedTime​(Date lastUsedTime)
      last used time of this object by the current viewer
    • getAssetScore

      relevance score of an asset.
      Returns:
      relevance score of an asset
    • setAssetScore

      public void setAssetScore​(Double assetScore)
      relevance score of an asset.