Package com.restfb.types
Class Account
-
- All Implemented Interfaces:
Serializable
public class Account extends Page
Represents the Account Graph API type.- Author:
- Mark Allen
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.restfb.types.Page
Page.Cover, Page.Engagement, Page.MailingAddress, Page.PageParking, Page.PagePaymentOptions, Page.PageRestaurantServices, Page.PageRestaurantSpecialties, Page.PageStartDate, Page.PageStartInfo, Page.ScreenName, Page.Settings, Page.VoipInfo
-
Nested classes/interfaces inherited from class com.restfb.types.FacebookType
FacebookType.Metadata
-
-
Constructor Summary
Constructors Constructor Description Account()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
addPerm(String permission)
Deprecated.since graph api v3.1, useaddTask(java.lang.String)
insteadboolean
addTask(String task)
Add a task to the task list.List<String>
getPerms()
Deprecated.since graph api v3.1, use getTasks() insteadList<String>
getTasks()
A list of tasks allowed to perform for this page.boolean
removePerm(String permission)
Deprecated.since graph api v3.1, useremoveTask(java.lang.String)
insteadboolean
removeTask(String task)
Remove the task from the task list.-
Methods inherited from class com.restfb.types.Page
addAdminNote, addCategory, addEmail, addFoodStyle, addLabel, addScreenName, convertHours, convertLabels, fillProfilePicture, getAbout, getAccessToken, getAdminNotes, getAffiliation, getAppId, getArtistsWeLike, getAssetScore, getAttire, getAwards, getBandInterests, getBandMembers, getBestPage, getBio, getBirthday, getBookingAgent, getBuilt, getBusiness, getCanCheckin, getCanPost, getCategory, getCategoryList, getCheckins, getCompanyOverview, getConnectedInstagramAccount, getContactAddress, getCountryPageLikes, getCover, getCulinaryTeam, getCurrentLocation, getDescription, getDescriptionHtml, getDirectedBy, getDisplaySubtext, getEmails, getEngagement, getFanCount, getFeaturedVideo, getFeatures, getFoodStyles, getFounded, getGeneralInfo, getGeneralManager, getGenre, getGlobalBrandPageName, getGlobalBrandParentPage, getGlobalBrandRootId, getHasAddedApp, getHasWhatsappNumber, getHometown, getHours, getImpressum, getInfluences, getInstagramBusinessAccount, getInstantArticlesReviewStatus, getIsAlwaysOpen, getIsChain, getIsCommunityPage, getIsPermanentlyClosed, getIsPublished, getIsUnclaimed, getIsVerified, getIsWebhooksSubscribed, getLabels, getLastUsedTime, getLeadgenTosAccepted, getLikes, getLikesCount, getLink, getLocation, getMembers, getMission, getMpg, getNameWithLocationDescriptor, getNetwork, getNewLikeCount, getOfferEligible, getOverallStarRating, getOwnerBusiness, getParking, getPaymentOptions, getPersonalInfo, getPersonalInterests, getPharmaSafetyInfo, getPhone, getPicture, getPlaceType, getPlotOutline, getPressContact, getPriceRange, getProducedBy, getProducts, getPromotionEligible, getPromotionIneligibleReason, getPublicTransit, getRatingCount, getRecordLabel, getReleaseDate, getRestaurantServices, getRestaurantSpecialties, getSchedule, getScreenNames, getScreenplayBy, getSeason, getSingleLineAddress, getStarring, getStartInfo, getStoreCode, getStoreLocationDescriptor, getStoreNumber, getStudio, getTalkingAboutCount, getUnreadMessageCount, getUnreadNotifCount, getUnseenMessageCount, getUsername, getVerificationStatus, getVoipInfo, getWebsite, getWereHereCount, getWhatsappNumber, getWrittenBy, graphApi26LikesFallback, removeAdminNote, removeCategory, removeEmail, removeFoodStyle, removeLabels, removeScreenName, setAbout, setAccessToken, setAffiliation, setAppId, setArtistsWeLike, setAssetScore, setAttire, setAwards, setBandInterests, setBandMembers, setBestPage, setBio, setBirthday, setBookingAgent, setBuilt, setBusiness, setCanCheckin, setCanPost, setCategory, setCheckins, setCompanyOverview, setConnectedInstagramAccount, setContactAddress, setCountryPageLikes, setCover, setCulinaryTeam, setCurrentLocation, setDescription, setDescriptionHtml, setDirectedBy, setDisplaySubtext, setEngagement, setFanCount, setFeaturedVideo, setFeatures, setFounded, setGeneralInfo, setGeneralManager, setGenre, setGlobalBrandPageName, setGlobalBrandParentPage, setGlobalBrandRootId, setHasAddedApp, setHasWhatsappNumber, setHometown, setHours, setImpressum, setInfluences, setInstagramBusinessAccount, setInstantArticlesReviewStatus, setIsAlwaysOpen, setIsChain, setIsCommunityPage, setIsPermanentlyClosed, setIsPublished, setIsUnclaimed, setIsVerified, setIsWebhooksSubscribed, setLastUsedTime, setLeadgenTosAccepted, setLikes, setLikesCount, setLink, setLocation, setMembers, setMission, setMpg, setNameWithLocationDescriptor, setNetwork, setNewLikeCount, setOfferEligible, setOverallStarRating, setOwnerBusiness, setParking, setPaymentOptions, setPersonalInfo, setPersonalInterests, setPharmaSafetyInfo, setPhone, setPicture, setPlaceType, setPlotOutline, setPressContact, setPriceRange, setProducedBy, setProducts, setPromotionEligible, setPromotionIneligibleReason, setPublicTransit, setRatingCount, setRecordLabel, setReleaseDate, setRestaurantServices, setRestaurantSpecialties, setSchedule, setScreenplayBy, setSeason, setSingleLineAddress, setStarring, setStartInfo, setStoreCode, setStoreLocationDescriptor, setStoreNumber, setStudio, setTalkingAboutCount, setUnreadMessageCount, setUnreadNotifCount, setUnseenMessageCount, setUsername, setVerificationStatus, setVoipInfo, setWebsite, setWereHereCount, setWhatsappNumber, setWrittenBy
-
Methods inherited from class com.restfb.types.NamedFacebookType
getName, setName
-
Methods inherited from class com.restfb.types.FacebookType
getId, getMetadata, getType, setId, setMetadata, setType
-
Methods inherited from class com.restfb.types.AbstractFacebookType
equals, hashCode, toString
-
-
-
-
Constructor Detail
-
Account
public Account()
-
-
Method Detail
-
getPerms
@Deprecated @GraphAPI(until="3.0") public List<String> getPerms()
Deprecated.since graph api v3.1, use getTasks() insteadA list of permissions the user has for this page. See roles list here- Returns:
- A list of permissions the user has for this page.
-
addPerm
@Deprecated @GraphAPI(until="3.0") public boolean addPerm(String permission)
Deprecated.since graph api v3.1, useaddTask(java.lang.String)
insteadadd a permission to the permission list.- Parameters:
permission
- the permission that should be added- Returns:
true
if the permission could be added
-
removePerm
@Deprecated @GraphAPI(until="3.0") public boolean removePerm(String permission)
Deprecated.since graph api v3.1, useremoveTask(java.lang.String)
insteadremove the permission from the permission list.- Parameters:
permission
- the permission that should be removed- Returns:
true
if the permission could be removed
-
getTasks
public List<String> getTasks()
A list of tasks allowed to perform for this page. See tasks list here- Returns:
- A list of allowed tasks
-
removeTask
public boolean removeTask(String task)
Remove the task from the task list.- Parameters:
task
-- Returns:
-
-