public enum Permission extends java.lang.Enum<Permission>
| Modifier and Type | Class and Description |
|---|---|
static class |
Permission.Role |
static class |
Permission.Type
Permission type enum: READ PUBLISH
|
| Enum Constant and Description |
|---|
ADS_READ
Provides the access to Ads Insights API to pull ads report information for ad
accounts you have access to.
|
EMAIL
Provides access to the person's primary email address via the
Profile.Properties#EMAIL property on the Profile object.Note: Even if you request the email permission it is not guaranteed you will get an email address. |
MANAGE_NOTIFICATIONS
Deprecated.
|
MANAGE_PAGES
Enables your app to retrieve Page Access Tokens for the Pages and Apps
that the person administrates.
|
PUBLIC_PROFILE
Deprecated.
|
PUBLISH_ACTION
Provides access to publish Posts, Open Graph actions, achievements,
scores and other activity on behalf of a person using your app.
|
READ_AUDIENCE_NETWORK_INSIGHTS
Provides read-only access to the Audience Network Insights data for Apps the person owns.
|
READ_CUSTOM_FRIENDLISTS
Provides access to the names of custom lists a person has created to organize their friends.
|
READ_FRIENDLISTS
Deprecated.
|
READ_INSIGHTS
Provides read-only access to the Insights data for Pages, Apps and web
domains the person owns.
|
READ_MAILBOX
Deprecated.
|
READ_PAGE_MAILBOX
Provides the ability to read from the Page Inboxes of the Pages managed
by a person.
|
READ_STREAM
Deprecated.
|
RSVP_EVENT
Provides the ability to set a person's attendee status on Facebook Events
(e.g.
|
USER_ABOUT_ME
Provides access to
BIO property of the
Profile |
USER_ACTIONS_BOOKS
Provides access to all common books actions published by any app the
person has used.
|
USER_ACTIONS_FITNESS
Provides access to all common Open Graph fitness actions published by any
app the person has used.
|
USER_ACTIONS_MUSIC
Provides access to all common Open Graph music actions published by any
app the person has used.
|
USER_ACTIONS_NEWS
Provides access to all common Open Graph news actions published by any
app the person has used which publishes these actions.
|
USER_ACTIONS_VIDEO
Provides access to all common Open Graph video actions published by any
app the person has used which publishes these actions.
|
USER_ACTIVITIES
Deprecated.
|
USER_BIRTHDAY
Access the date and month of a person's birthday.
|
USER_EDUCATION_HISTORY
Provides access to
EDUCATION
property of the Profile |
USER_EVENTS
Provides read-only access to the Events a person is hosting or has RSVP'd
to.
|
USER_FRIENDS
Provides access the list of friends that also use your app.
|
USER_GAMES_ACTIVITY
Provides access to read a person's game activity (scores, achievements)
in any game the person has played.
|
USER_GROUPS
Deprecated.
|
USER_HOMETOWN
Provides access to a person's hometown location through the hometown
field on the User object.
|
USER_INTERESTS
Deprecated.
|
USER_LIKES
Provides access to the list of all Facebook Pages and Open Graph objects
that a person has liked.
|
USER_LOCATION
Provides access to a person's current city through the location field on
the User object.
|
USER_MANAGED_GROUPS
Enables your app to read the Groups a person is a member of through the
groups edge on the User object.
|
USER_PHOTOS
Provides access to the photos a person has uploaded or been tagged in.
|
USER_POSTS
Provides access to the posts on a person's Timeline.
|
USER_RELATIONSHIP_DETAILS
Provides access to a person's relationship interests as the interested_in
field on the User object.
|
USER_RELATIONSHIPS
Provides access to a person's relationship status, significant other and
family members as fields on the User object.
|
USER_RELIGION_POLITICS
Provides access to a person's religious and political affiliations.
|
USER_STATUS
Provides access to a person's statuses.
|
USER_TAGGED_PLACES
Provides access to the Places a person has been tagged at in photos,
videos, statuses and links.
|
USER_VIDEOS
Provides access to the videos a person has uploaded or been tagged in
|
USER_WEBSITE
Provides access to the person's personal website URL via the website
field on the
Profile entity. |
USER_WORK_HISTORY
Provides access to a person's work history and list of employers via the
work field on the
Profile entity. |
| Modifier and Type | Method and Description |
|---|---|
static java.util.List<Permission> |
convert(java.util.Collection<java.lang.String> rawPermissions) |
static java.util.List<java.lang.String> |
convert(java.util.List<Permission> permissions) |
static java.util.List<java.lang.String> |
fetchPermissions(java.util.List<Permission> permissions,
Permission.Type type) |
static Permission |
fromValue(java.lang.String permissionValue) |
Permission.Type |
getType() |
java.lang.String |
getValue() |
static Permission |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Permission[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
@Deprecated public static final Permission PUBLIC_PROFILE
Profile fields can be retrieved by using this
permission:IDNAMEFIRST_NAMELAST_NAMELINKGENDERLOCALEAGE_RANGEpublic static final Permission USER_ABOUT_ME
BIO property of the
Profilepublic static final Permission USER_ACTIONS_BOOKS
public static final Permission USER_ACTIONS_FITNESS
public static final Permission USER_ACTIONS_MUSIC
public static final Permission USER_ACTIONS_NEWS
public static final Permission USER_ACTIONS_VIDEO
@Deprecated public static final Permission USER_ACTIVITIES
public static final Permission USER_BIRTHDAY
public static final Permission USER_EDUCATION_HISTORY
EDUCATION
property of the Profilepublic static final Permission USER_EVENTS
public static final Permission USER_FRIENDS
public static final Permission USER_GAMES_ACTIVITY
@Deprecated public static final Permission USER_GROUPS
public static final Permission USER_MANAGED_GROUPS
public static final Permission USER_HOMETOWN
@Deprecated public static final Permission USER_INTERESTS
public static final Permission USER_LIKES
public static final Permission USER_LOCATION
public static final Permission USER_PHOTOS
public static final Permission USER_RELATIONSHIPS
public static final Permission USER_RELATIONSHIP_DETAILS
public static final Permission USER_RELIGION_POLITICS
public static final Permission USER_STATUS
public static final Permission USER_TAGGED_PLACES
public static final Permission USER_VIDEOS
public static final Permission USER_WEBSITE
Profile entity.public static final Permission USER_WORK_HISTORY
Profile entity.@Deprecated public static final Permission READ_FRIENDLISTS
public static final Permission READ_CUSTOM_FRIENDLISTS
public static final Permission READ_INSIGHTS
@Deprecated public static final Permission READ_MAILBOX
@Deprecated public static final Permission READ_STREAM
public static final Permission READ_PAGE_MAILBOX
public static final Permission EMAIL
Profile.Properties#EMAIL property on the Profile object.public static final Permission USER_POSTS
public static final Permission ADS_READ
public static final Permission READ_AUDIENCE_NETWORK_INSIGHTS
public static final Permission PUBLISH_ACTION
public static final Permission RSVP_EVENT
@Deprecated public static final Permission MANAGE_NOTIFICATIONS
public static final Permission MANAGE_PAGES
public static Permission[] values()
for (Permission c : Permission.values()) System.out.println(c);
public static Permission valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant
with the specified namejava.lang.NullPointerException - if the argument is nullpublic java.lang.String getValue()
public Permission.Type getType()
public static Permission fromValue(java.lang.String permissionValue)
public static java.util.List<Permission> convert(java.util.Collection<java.lang.String> rawPermissions)
public static java.util.List<java.lang.String> convert(java.util.List<Permission> permissions)
public static java.util.List<java.lang.String> fetchPermissions(java.util.List<Permission> permissions, Permission.Type type)