YamPiz Servies
       
       
      Share
       
      Blog /

      Facebook 網站應用

      Previous
      Next
      Context
      Facebook 網站應用
      Facebook 隨著龐大的使用人口,實現了許多以往無法實現的便利,其中一個就是,open ID 的概念, 透過 Facebook 的用戶驗証,轉向其他網站作用使用者辯別的一個機制,該怎麼開始呢?首先 Facebook 提供了完整的說明文件:

      Facebook Developers

      依照使用的平台不同,可以在這裡找到相對應的 SDK

      SDKs & Tools

      好了,我們可以開始了,首先要申請一組 Facebook 應用程式 ID。透過這個 ID Facebook 才能夠管理應用程式。

      My Apps

      註冊後會得到以下資訊

      • 應用程式 ID
      • API 金鑰
      • 應用程式密鑰
      • 網站URL
      • Site Domain

      Site Domain 請設定為自己網站的網域。

      下載 SDK:

      因為魚戀是使用 PHP 作為網站平台,所以下載了 PHP SDK 。

      開始開發嚕:

      解厭縮後可以找到 facebook.php 的物件類別檔,把它加入程序中。

      Include("./facebook.php");

      接著創立 Facebook 物件,AAA 填上『應用程式 ID』,BBB 填上『應用程式密鑰』。

      $facebook = new Facebook(array('appId' => 'AAA','secret' => 'BBB','cookie' => true,));

      到此為止,其實就可以開始使用 Facebook 帶來的便利了,好好的利用一下 $facebook 這個物件吧,但在開始使用之前我們要先確定它可以正常的使用。

      待續...

      • This is a declared original article, to respect the copyright, please do not repost this article without the consent of the author.
      • Keywords : Facebook(9), 使用(4), facebook(4), 應用程式(3), 物件(2), 填上(2), 可以(2), 便利(2), 下載(2), Domain(2), 龐大(1), 魚戀(1), 首先(1), 開發嚕(1), 金鑰(1), 透過這(1), 透過(1), 轉向其(1), 請設定為(1), 該怎麼(1)
      0 0
      2011-04-21T10:38:00+0000

      Comment
       
      Verify

      Facebook Page

      Blog Directory

      • 魚戀秋波 Neil Y.K.'s Blog
        • 心情‧日記
        • Creation
          • 繪圖
          • Photographic
          • Sketch
          • Aquatic
          • Programming
            • 關鍵詞庫系統搜尋及應用設計
            • 鍵盤測試工具
            • 宅配物流系統
            • 中文判定及轉換程式
            • 圖片裁切控制介面 ScaleFrame
            • 線上名片設計程式
            • 讓列表像瀑布一樣的 Puzzle 模組
            • 商品特徵設定程式
            • 網路履歷程式
            • 整合搜尋模組
            • 全球地理管理工具
            • 傳說中 IE 消失的文字
            • 全球化地理系統
            • 網頁輪播模組
            • 黑族塔羅牌陣程式
            • 英文地址轉換程式英文地址轉換程式
            • 黑族紙娃娃系統黑族紙娃娃系統
            • 索引地圖建立工具
            • 推薦好用的文字編輯器
            • JScript 事件的共用
            • Set upload file size on PHP
            • 許久不見的偵錯模式
            • 解決 Flash 無法在原網頁開啟連結
            • 雷達圖產生程式
            • 相片雜湊工具
            • Facebook 網站應用
            • 自創的防木馬登入網頁
          • Literature
        • My Jobs
        • Misc DIY
        • Stray notes
        • 玩樂情報
        • 生活話題
        • 經方中醫
        • Unclass

      Blog List

      QR-Code and APP Launcher

      User Guide
      This Webpage

      In those service tabs, "Scan QRCode, in mobile device" or "Click the button, in this device" to open webpage or APP-related operations.
      QRCode

      Visitors

      • Visitors : 8,368,897
      • Hits : 8,553,600
      • Depth : 102.2 %
      • YamPiz Hero Blog
        This service architecture and content service provider.
      • Auto Platform
        For better browsing experience, it will auto detects your device to display webpage.
      • Bug Report
        Tell us about the idea, problem and errors you found.
      • Comodo Secure
        The sensitive data transmission adopts by SSL-2048 authenticated encryption.
      • Copyright
        © 2009 YamPiz Digital Inc. & Jaby Group. All rights reserved.
      • Revised Version
        V2.2.210
        10 Mar 2025 (GMT+8)