|
| 1 | +<?php |
| 2 | +/** |
| 3 | + * Copyright 2014 Facebook, Inc. |
| 4 | + * |
| 5 | + * You are hereby granted a non-exclusive, worldwide, royalty-free license to |
| 6 | + * use, copy, modify, and distribute this software in source code or binary |
| 7 | + * form for use in connection with the web services and APIs provided by |
| 8 | + * Facebook. |
| 9 | + * |
| 10 | + * As with any software that integrates with the Facebook platform, your use |
| 11 | + * of this software is subject to the Facebook Developer Principles and |
| 12 | + * Policies [http://developers.facebook.com/policy/]. This copyright notice |
| 13 | + * shall be included in all copies or substantial portions of the software. |
| 14 | + * |
| 15 | + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
| 16 | + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
| 17 | + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL |
| 18 | + * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
| 19 | + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING |
| 20 | + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
| 21 | + * DEALINGS IN THE SOFTWARE. |
| 22 | + * |
| 23 | + */ |
| 24 | +namespace Facebook; |
| 25 | + |
| 26 | +/** |
| 27 | + * Class FacebookPermissions |
| 28 | + * @package Facebook |
| 29 | + */ |
| 30 | +final class FacebookPermissions |
| 31 | +{ |
| 32 | + // Basic permissions |
| 33 | + const PUBLIC_PROFILE = 'public_profile'; |
| 34 | + const USER_FRIENDS = 'user_friends'; |
| 35 | + const EMAIL = 'email'; |
| 36 | + // Extended Profile Properties |
| 37 | + const USER_ABOUT_ME = 'user_about_me'; |
| 38 | + const USER_ACTIONS_BOOKS = 'user_actions.books'; |
| 39 | + const USER_ACTIONS_FITNESS = 'user_actions.fitness'; |
| 40 | + const USER_ACTIONS_MUSIC = 'user_actions.music'; |
| 41 | + const USER_ACTIONS_NEWS = 'user_actions.news'; |
| 42 | + const USER_ACTIONS_VIDEO = 'user_actions.video'; |
| 43 | + const USER_ACTIVITIES = 'user_activities'; |
| 44 | + const USER_BIRTHDAY = 'user_birthday'; |
| 45 | + const USER_EDUCATION_HISTORY = 'user_education_history'; |
| 46 | + const USER_EVENTS = 'user_events'; |
| 47 | + const USER_GAMES_ACTIVITY = 'user_games_activity'; |
| 48 | + const USER_GROUPS = 'user_groups'; |
| 49 | + const USER_HOMETOWN = 'user_hometown'; |
| 50 | + const USER_INTERESTS = 'user_interests'; |
| 51 | + const USER_LIKES = 'user_likes'; |
| 52 | + const USER_LOCATION = 'user_location'; |
| 53 | + const USER_PHOTOS = 'user_photos'; |
| 54 | + const USER_POSTS = 'user_posts'; |
| 55 | + const USER_RELATIONSHIPS = 'user_relationships'; |
| 56 | + const USER_RELATIONSHIP_DETAILS = 'user_relationship_details'; |
| 57 | + const USER_RELIGION_POLITICS = 'user_religion_politics'; |
| 58 | + const USER_STATUS = 'user_status'; |
| 59 | + const USER_TAGGED_PLACES = 'user_tagged_places'; |
| 60 | + const USER_VIDEOS = 'user_videos'; |
| 61 | + const USER_WEBSITE = 'user_website'; |
| 62 | + const USER_WORK_HISTORY = 'user_work_history'; |
| 63 | + // Extended Permissions |
| 64 | + const READ_FRIENDLISTS = 'read_friendlists'; |
| 65 | + const READ_INSIGHTS = 'read_insights'; |
| 66 | + const READ_MAILBOX = 'read_mailbox'; |
| 67 | + const READ_PAGE_MAILBOXES = 'read_page_mailboxes'; |
| 68 | + const READ_STREAM = 'read_stream'; |
| 69 | + const MANAGE_NOTIFICATIONS = 'manage_notifications'; |
| 70 | + const MANAGE_PAGES = 'manage_pages'; |
| 71 | + const PUBLISH_PAGES = 'publish_pages'; |
| 72 | + const PUBLISH_ACTIONS = 'publish_actions'; |
| 73 | + const RSVP_EVENT = 'rsvp_event'; |
| 74 | +} |
0 commit comments