May 2, 2010

Facebook for Mobile Apps の訳

http://developers.facebook.com/docs/guides/mobile/
Facebook for Mobile Apps の訳
EXCITE機械翻訳です。

ホーム :  Documentation :  Facebook for Mobile Apps
-----------------------------------------------------------------------
Introduction.
序論。

Over 100 million people use Facebook from mobile phones every month. You can incorporate Facebook into your own mobile application using the same APIs as those provided for all web sites, formatted to fit on a mobile phone.

1億人以上は、毎月携帯電話からFacebookを使用します。 あなたは、携帯電話で合うようにフォーマットされた、すべてのウェブサイトに提供されたものと同じAPIを使用することであなた自身のモバイルアプリケーションにFacebookを組み入れることができます。


This guide focuses on mobile web sites. If you are building a native mobile application, check out our open source mobile SDKs:

このガイドはモバイルウェブサイトに焦点を合わせます。 固有のモバイルアプリケーションを組立てているなら、私たちのオープンソースモバイルSDKsを調べてください:

iPhone SDK
Android SDK (unofficial)

-----------------------------------------------------------------------
Getting Started.
使用前に。

To personalize a mobile web application, you need to authorize the user with Facebook. Once the user has authorized your application, you can fetch user profile data from the Graph API. You can also ask the user for special permission to publish messages to the user's Wall from your application.

モバイルウェブアプリケーションを個人化するために、あなたは、Facebookと共にユーザに権限を与える必要があります。 ユーザがいったんあなたのアプリケーションを認可すると、あなたはGraph APIからのユーザ・プロファイルデータをとって来ることができます。 また、あなたはメッセージをあなたのアプリケーションからユーザのWallに発表する特許をユーザに求めることができます。

Facebook has released SDKs for PHP and Python for the the Graph API to make it easier to develop mobile apps in those languages.

Graph APIでそれらの言語におけるモバイルアプリケーションを開発するのが、より簡単になるように、FacebookはPHPとパイソンのためのSDKsをリリースしました。

-----------------------------------------------------------------------
Mobile Authentication
モバイル認証

Facebook uses OAuth 2.0 for authentication and authorization. Read the authentication guide for more details about Facebook's implementation of OAuth.


Facebookは認証と承認にOAuth2.0を使用します。 FacebookのOAuthの実現に関するその他の詳細のために認証ガイドを読んでください。



Mobile web applications use the same authorization endpoints as normal web applications, using a special argument (display) to specify the mobile version of the authorization dialog. There are two options for display relevant to mobile web applications:

モバイルウェブアプリケーションは通常のウェブアプリケーションと同じ承認終点を使用します、承認対話のモバイルバージョンを指定するのに、特別な主張(ディスプレイ)を使用して。 モバイルウェブアプリケーションに関連しているディスプレイのための2つのオプションがあります:

wap    Older mobile web browsers
touch    Smartphone, full featured web browsers
For example, to authorize a user using the WAP-friendly authorization UI, redirect the user to the following URL:

オールダーモバイルウェブブラウザ接触Smartphone、完全な特集されたウェブブラウザForの例を縛って、WAPに優しい承認UIを使用することでユーザに権限を与えて、以下のURLにユーザを向け直してください:


  「原文はここにソースコード」

The resulting dialog looks like this:
結果として起こる対話はこれに似ています:





End-to-end, this is how you authorize a user in a mobile web application:

終わるために終わってください、そして、これはあなたがモバイルウェブアプリケーションでどうユーザに権限を与えるかということです:

Register your application to get an application id and secret. Your application id is your client_id and your application secret is your client_secret.

アプリケーションを登録して、アプリケーションイドと秘密を得てください。 あなたのアプリケーションイドはあなたのクライアント_イドです、そして、あなたのアプリケーション秘密はあなたのクライアント_秘密です。

Redirect the user to https://graph.facebook.com/oauth/authorize with your client_id and the callback URL. Specify display depending on the type of mobile device your application is targeting. Example:

クライアント_イドとコールバックURLで https://graph.facebook.com/oauth/authorize にユーザを向け直してください。 あなたのアプリケーションが狙っているモバイル機器のタイプに頼るディスプレイを指定してください。 例:

  「原文はここにソースコード」

After the user authorizes your application, we redirect the user back to the callback URL you specified with the argument code, which can be exchanged for an oauth access token. Exchange it for an access token by fetching https://graph.facebook.com/oauth/access_token. Example:

ユーザがあなたのアプリケーションを認可した後に、私たちは、あなたがoauthアクセストークンと交換できる議論コードで指定したコールバックURLにユーザを向け直して戻します。 魅惑的な https://graph.facebook.com/oauth/access_token によるアクセストークンとそれを交換してください。 例:

  「原文はここにソースコード」

Use the access token returned by the request above to fetch data from the Graph API on behalf of the user. Example:

ユーザを代表してGraph APIからのデータをとって来るために要求で上に返されたアクセストークンを使用してください。 例:

  「原文はここにソースコード」
Facebook c 2010

No comments:

Post a Comment