Custom Search

Friday, September 25, 2009

How to get facebook connect permissions

Facebook offers some API functionality that requires the user to specifically opt in before your application or site can use that functionality. These methods are specific to certain use cases that require a greater level of trust from the user. Users express this trust by granting your application or site specific extended permissions. These permissions allow your application to perform certain actions.
The available extended permissions are:

1. publish_stream -- Lets your application or site post content, comments, and likes to a user's profile and in the streams of the user's friends without prompting the user. This permission is a superset of the status_update, photo_upload, video_upload, create_note, and share_item extended permissions, so if you haven't prompted users for those permissions yet, you need only prompt them for publish_stream.

2. read_stream -- Lets your application or site access a user's stream and display it. This includes all of the posts in a user's stream. You need an active session with the user to get this data.

3. email -- This permission allows an application to send email to its user. When the user accepts, you can send him/her an email via notifications.sendEmail.

4. offline_access -- This permission grants an application access to user data when the user is offline or doesn't have an active session.

5. create_event -- This permission allows an app to create and modify events for a user via the events.create, events.edit and events.cancel methods.

6. rsvp_event -- This permission allows an app to RSVP to an event on behalf of a user via the events.rsvp method.

7. sms -- This permission allows a mobile application to send messages to the user and respond to messages from the user via text message.

8. status_update -- This permission grants your application the ability to update a user's or Facebook Page's status with the status.set or users.setStatus method.
Note: You should prompt users for the publish_stream permission instead, since it includes the ability to update a user's status.

9. photo_upload -- This permission relaxes requirements on the photos.upload and photos.addTag methods. If the user grants this permission, photos uploaded by the application will bypass the pending state and the user will not have to manually approve the photos each time.
Note: You should prompt users for the publish_stream permission instead, since it includes the ability to upload a photo.

10. video_upload -- This permission allows an application to provide the mechanism for a user to upload videos to their profile.
Note: You should prompt users for the publish_stream permission instead, since it includes the ability to upload a video.

11. create_note -- This permission allows an application to provide the mechanism for a user to write, edit, and delete notes on their profile.
Note: You should prompt users for the publish_stream permission instead, since it includes the ability to let a user write notes.

12. share_item -- This permission allows an application to provide the mechanism for a user to post links to their profile.
Note: You should prompt users for the publish_stream permission instead, since it includes the ability to let a user share links.



No comments: