PEAR のライブラリを使って、 OAuth プロトコルによる Facebook のログイン認証と Facebook への投稿を実装する。 デモ Facebook ログインのデモ ダウンロード 前準備 必須な PEAR ライブラリイ バージョンは 2011年3月 時点のもの。 - HTTP_Request2-2.0.0 - Net_URL2-0.3.1 - Cache_Lite-1.7.8 コード login ログイン $url = 'https://www.facebook.com/dialog/oauth'; $url .= '?client_id=' . $APP_ID; $url .= '&redirect_uri=' . $url_callback; $url .= '&scope='publish_stream,offline_access'; header('Locatio