Upgrade to Pro — share decks privately, control downloads, hide ads and more …

NTU CCSP 2012Fall - Facebook

Steven Su
November 28, 2012

NTU CCSP 2012Fall - Facebook

Steven Su

November 28, 2012
Tweet

More Decks by Steven Su

Other Decks in Programming

Transcript

  1. Facebook App • Web App • Mobile Web App •

    iOS App • Android App • Page App
  2. Facebook App • Web App • Mobile Web App •

    iOS App • Android App • Page App
  3. Facebook Technology • Social Plugin • Graph API • Open

    Graph • Ads API • Chat API • Payment API
  4. Facebook Technology • Social Plugin • Graph API • Open

    Graph • Ads API • Chat API • Payment API
  5. Graph API Facebook的RESTful API 透過HTTP/HTTPS來存取Facebook的資料 採用OAuth2認證機制 OpenSocial的分散 vs Facebook Graph

    API的集中 API文件 https://developers.facebook.com/docs/reference/api/ 測試工具 https://developers.facebook.com/tools/explorer
  6. 權限設計 分成四種 User and Friend Permissions: Access various elements of

    a user's timeline, such as their birthday, events they're attending or their interests. Extended Permissions: Access most of the publishing permissions and more sensitive info like the user's news feed. Open Graph Permissions: Access Open Graph APIs, including publishing actions and global actions. Page Permissions: Act on behalf of any Facebook Pages the user administrates. 要讀取feed或發佈到feed需要 publish_stream 和 read_stream