facebook - acesso e integração de dados

Download Facebook - acesso e integração de dados

Post on 17-Oct-2014

11.126 views

Category:

Business

4 download

Embed Size (px)

DESCRIPTION

 

TRANSCRIPT

Facebook

FacebookAcesso e integrao de dados

Princpios bsicosO ncleo do facebook o social graph; pessoas e as conexes que elas tm sobre tudo que elas julgam importantesA plataforma Facebook um conjunto de APIs e ferramentas que possibilitam a integrao do social graph com Sites, aplicaes e dispositivos

http://developers.facebook.com/docs/2Ao longo do tempo o Facebook evoluiu a poltica de privacidadeEm 2007, o Facebook permitiu que o nome, escola e perfis estejam disponveis para os mecanismos de busca. Estes dados s no estariam disponveis ao menos que o usurio no permita a publicao.Em 2009, renovou as configuraes de privacidade e permitiu que os usurios tivessem maior controle sobre quem pode ver diferentes aspectos do perfil do usurio. No entanto o padro de acesso aos dados era pblico para qualquer atributo.Em Abril de 2010, decidiu que alguns elementos so pblicos para todos os perfis (nome, cidade, escola, interesses e fan pages), e eliminou a possibilidade de limitar o acesso a estes dados. Se a pessoa no quiser permitir o acesso a estes dados o Facebook recomendou-se deix-los em branco no perfil.Neste mesmo ms, o Facebook lanou o Open Graph, que compartilha os perfis dos usurios com sites de terceiros, consequentemente os visitantes destes sites podem ser personalizados com base nos interesses das pessoas. Por outro lado, o Facebook abriu a API para que os sites de terceiros possam adicionar um boto Like em suas pginas; ao clicar, a informao guardada no perfil do usurio.http://www.thematrixfiles.net/blog/whats-all-the-fuss-about-facebooks-open-graph/3Conceitos chaveOs tipos de aplicao com o FacebookWebsitesMobile applications Applications on Facebook.comFacebook para WebsitesA plataforma Facebook permite a criao de sites mais personalizados e sociais, podendo combinar e cruzar as APIsRegistro + Login: com um nico dilogo, possvel acessar os dados de cadastro do facebook (nome real, e-mail, fotos e a lista de amigos). Substituir ou complementar sistemas de clientes com o Facebook para aumentar a qualidade de dadosEngajamento: plugins como o boto Like e a lista de atividades possibilitam oferecer experincias sociais com a implementao de um HTML simplesGrowth: pode ser publicado contedo de um site no social graph. O boto like possibilita ao usurio a compartilhar o contedo do Facebook com um clique. Alm disto possvel integrar pginas com profundidade no social graph com o Open Graph protocolSocial pluginsOs plugins so mecanismos sociais que podem ser integrados a um site com uma linha de HTML

http://developers.facebook.com/docs/guides/web7Single sign-onO facebook possibilita criar um mecanismo de login conectado diretamente ao siteUma vez que um usurio est logado no site com uma conta no facebook, possvel acessar algumas informaes do Facebook

Account registration dataAlguns dados do registro do Facebook so privados e requerem a autorizao extendida extended permissions ao usurio efetuar o login

Extended permissionsQuando um usurio do Facebook autoriza uma aplicao permitido como padro acessar todos os dados pblicos (incluindo o nome, foto do perfil, gnero e amigos)Outros componentes privados dos usurios requerem uma autorizao extendida: para publicao, acesso a dados e permissesExtended permissions / publicaoPermissionDescriptionpublish_streamEnables your application to post content, comments, and likes to a user's stream and to the streams of the user's friends. With this permission, you can publish content to a user's feed at any time, without requiring offline_access. However, please note that Facebook recommends a user-initiated sharing model.create_eventEnables your application to create and modify events on the user's behalfrsvp_eventEnables your application to RSVP to events on the user's behalfsmsEnables your application to send messages to the user and respond to messages from the user via text messageoffline_accessEnables your application to perform authorized requests on behalf of the user at any time. By default, most access tokens expire after a short time period to ensure applications only make requests on behalf of the user when the are actively using the application. This permission makes the access token returned by our OAuth endpoint long-lived.publish_checkinsEnables your application to performcheckinson behalf of the userhttp://developers.facebook.com/docs/authentication/permissions11Extended permissions / acesso a dados (1/2)User permissionFriends permissionDescriptionuser_about_mefriends_about_meProvides access to the "About Me" section of the profile in the about propertyuser_activitiesfriends_activitiesProvides access to the user's list of activities as the activities connectionuser_birthdayfriends_birthdayProvides access to the birthday with year as thebirthday_datepropertyuser_education_historyfriends_education_historyProvides access to education history as the education propertyuser_eventsfriends_eventsProvides access to the list of events the user is attending as the events connectionuser_groupsfriends_groupsProvides access to the list of groups the user is a member of as the groups connectionuser_hometownfriends_hometownProvides access to the user's hometown in the hometown propertyuser_interestsfriends_interestsProvides access to the user's list of interests as the interests connectionuser_likesfriends_likesProvides access to the list of all of the pages the user has liked as the likes connectionuser_locationfriends_locationProvides access to the user's current location as the location propertyuser_notesfriends_notesProvides access to the user's notes as the notes connectionuser_online_presencefriends_online_presenceProvides access to the user's online/offline presenceuser_photo_video_tagsfriends_photo_video_tagsProvides access to the photos the user has been tagged in as the photos connectionuser_photosfriends_photosProvides access to the photos the user has uploadeduser_relationshipsfriends_relationshipsProvides access to the user's family and personal relationships and relationship statususer_relationship_detailsfriends_relationship_detailsProvides access to the user's relationship preferencesuser_religion_politicsfriends_religion_politicsProvides access to the user's religious and political affiliationsuser_statusfriends_statusProvides access to the user's most recent status messageuser_videosfriends_videosProvides access to the videos the user has uploadeduser_websitefriends_websiteProvides access to the user's web site URLuser_work_historyfriends_work_historyProvides access to work history as the work propertyemailnot availableProvides access to the user's primary email address in the email property. Do not spam users. Your use of email must comply both withFacebook policiesand with theCAN-SPAM Act.http://developers.facebook.com/docs/authentication/permissions12Extended permissions / acesso a dados (2/2)User permissionFriends permissionDescriptionread_friendlistsnot availableProvides read access to any friend lists the user created. NOTE: All user's friends are provided as part of basic data, this extended permission grants access to the lists of friends a user has created, and should only be requested if your application utilizes lists of friends.read_insightsnot availableProvides read access to the Insights data for pages, applications, and domains the user owns.read_mailboxnot availableProvides the ability to read from a user's Facebook Inbox. You mustrequest to be whitelistedbefore you can prompt for this permission.read_requestsnot availableProvides read access to the user's friend requestsread_streamnot availableProvides access to all the posts in the user's News Feed and enables your application to perform searches against the user's News Feedxmpp_loginnot availableProvides applications thatintegrate with Facebook Chatthe ability to log in users.ads_managementnot availableProvides the ability to manage ads and call theFacebook Ads APIon behalf of a user.user_checkinsfriends_checkinsProvides read access to the authorized user's check-ins or a friend's check-ins that the user can see.http://developers.facebook.com/docs/authentication/permissions13Extended permissions / permisses-pginaPermissionDescriptionmanage_pagesEnables your application to retrieveaccess_tokensfor pages the user administrates. The access tokens can be queried using the "accounts" connection in the Graph API. This permission is only compatible with the Graph API.http://developers.facebook.com/docs/authentication/permissions14Server-side personalizationUma vez conectado ao Facebook, possvel personalizar o contedo com o uso da Graph APICom a Graph API possvel ler e escrever objetos e conexes possvel interagir com a API com: Autorizao/Autenticao, Leitura, Buscas, Publicao, Remoo, AnliseCada objeto no social graph possui um ID nico. possvel acessar as propriedades de um objeto ao requisit-lo por seu ID, exemplo: https://graph.facebook.com/IDUm exemplo a pagina oficial do Facebook Platform que possui o ID 19292868552, consequentemente possvel acessar os dados do objeto ao requisitar https://graph.facebook.com/19292868552Graph API / AutorizaoCom a API possvel acessar informao pblica de um objeto, no entanto para extrair uma informao adicional de um usurio necessrio obter a permisso do usurio e um token de acesso

AlbumA photo album

LinkA shared link

GroupA Facebook group

CheckinA checkin made through Facebook Places or the Graph API.

PostAn individual entry in a profile's feed

InsightsA statistic about an application, page, or domain.

EventA Facebook event

ApplicationAn individual application registered on the Facebook Platform

NoteA Facebook note

PhotoAn individual photo

UserA user profile.

PageA Facebook Page.

Status messageA status message on a user's wall

SubscriptionAn individual subscription from an application to get real-time update