返回正常中文阅读
想对这篇译文“指手画脚”吗?
大错
小错
不顺
建议 Anatomy of a Facebook Application
Anatomy of a Facebook Application
AFacebook application can take on many forms. However, to fully utilizethe suite of integration points and deliver a full user experience, werecommend using the following application structure:
- Product Directory
- About
- Left Nav
- Facebook Canvas Pages
- Profile
- Privacy Settings
- News Feed
- Alerts
- Message Attachments
- Requests
Belowyou will see all these various components as they are applied to ourown Photos Application. It should be noted that none of these pages aremandatory but the more you include in your application the richer theexperience becomes (for example, no one's going to install your appcalled "Lefty" that is only a left nav link)
Product Directory
Manyusers may find your application by browsing the Facebook ApplicationDirectory. This is where beautiful imagery and concise, descriptivetext pay off.

About
Theabout page tells users about the application and is accessed from theFacebook Application Directory. It should inspire users to install theapplication.

Left Nav
Applicationscan have their icon and name added to the left hand Facebooknavigation. This will link to that application's homepage.

Facebook Canvas Pages
FacebookCanvas pages are presented within the Facebook frame and can either beFBML or an external html site presented within an iframe.

Home
Anapplication's homepage is accessed from the Facebook Left Nav. Ideallythis homepage would aggregate friend data to create a page worth comingback to quite often. For example, the photo homepage shows yourfriends' recently created albums.

User Dashboard
Theuser dashboard is usually accessed from the top right drop-down menu inthe user's profile. This is where users manage their own content withinan application or see information about another user's content withinthat application.

Profile
TheFacebook profile is the online representation of the user's real worldidentity. We have included many integration points on the profile. Thisenables you to empower the user to express themselves through yourapplication.
Profile Box
The profile boxis usually the place to show the most recently updated information orthe most recent actions of the user. This information should reflecthow the user would want to represent their identity through yourapplication on their profile.

Profile Action Links
Undera user's photo in their profile you can display a quick link to moreinfo about that user's presence within your application. You caninstall these links even for users who haven't installed yourapplication; have added your application (or, in the case of theprofile of a user who has added your application, it will show up forall viewers).

Privacy Settings
Userswill be able to set who can see your application's profile box fromFacebook's privacy page. Any other privacy settings you wish toincorporate should be built into your application's privacy/settingspage.

News Feed
Applicationscan access News Feed and post stories to it. Each user has a maximumnumber of News Feed stories that they can see from all applications.Once that maximum is reached they will no longer see any moreapplication stories during that sweep. For example, the Photosapplication publishes News Feed stories about photos your friends haveuploaded recently.

Alerts
Applicationscan send notifications to a user through email. The user of theapplication who triggers this action must approve of the email, andusers can opt out of receiving the email for any application that hasever sent them emails.
Message Attachments
Applicationscan create attachments that appear in a dropdown menu on the messagecomposer. When the user selects that action, content is fetched andplaced inside an attachment box below the message text in the composer.

Requests
Applicationscan create requests that show up at the top right of a user's homepage.These requests are usually initiated by a user's friend and oftenrequire the user to take some form of action. An example of this in thePhotos application is a photo tag request confirmation.

Facebook开放平台完全解析
Facebook程序可以有许多种表现形式。但是,为了综合地利用这个平台并创造更好的用户体验,我们推荐采用这样的程序结构:1、程序目录
2、程序介绍
3、左侧边栏
4、Facebook主面板
a、程序首页
b、用户管理面板
5、用户信息
a、用户活动信息栏
b、个人链接
6、隐私设置
7、新闻
8、提醒
9、消息附件
10、请求
下面我将以我们的照片程序为例介绍每一个组件。应该注意的是这种结构并不是强制要求的,但是包含的组件越多用户体验就越丰富(例如,如果你的“左撇子”应用只有一个左侧边栏,没有人会安装它的)。
产品目录
大部分的用户都是在Facebook程序目录看到你的产品的,这就是为什么你需要用形象、生动的文字来描述你的程序。

产品介绍
点击Facebook程序目录中的链接会进入程序的介绍页面,这里告诉用户这个程序的相关信息。你应该通过对程序的介绍吸引用户安装它。

左侧边栏
程序应该有自己的图标和名字,可以显示在左侧的Facebook导航栏中。点击左侧边栏中的链接会进入该程序的主页。

Facebook主面板
Facebook主面板是Facebook页面框架中的一个区域,它可以是FBML或者是内嵌的外部HTML站点。

程序首页
程序的首页通过点击左侧边栏的链接进入。这个首页应该包含好友最新创建的页面,以吸引好友经常访问。例如,照片程序的首页显示了好友最近创建的相册。

用户管理面板
用户可以通过用户资料页面右上角的下拉菜单进入管理面板。在管理面板中,用户可以管理他们的内容或者查看其他用户在通过该程序创建的内容的相关信息。

用户信息
Facebook中的用户信息应该是他们在现实世界中的真实信息,在用户信息中包含许多项目。用户可以通过自己的信息来展示自己。
用户活动信息栏
用户活动信息栏中显示了该用户最近更新的信息或者最近的活动。用户可以利用在这里的个人信息展示自己的身份。

个人链接
你可以在用户信息的照片下面设置一些用户个人链接,指向用户在你的程序中的更多信息。你甚至可以为没有安装你的程序的用户设置这些链接(在照片程序中,所有的浏览者都可以看到安装了该程序的用户的个人信息)。

隐私设置
用户可以通过Facebook隐私设置页面来决定谁可以看到自己的活动信息栏。你可以在程序的隐私设置页面中放置更多的隐私选项。

新闻
你的程序应该包含新闻功能,可以显示该用户的好友的最新消息。每个用户的新闻数目有一个上限,达到上限以后,如果用户不进行清理,他将无法看到更多的新闻。例如,在照片程序中,新闻栏可以显示该用户的好友最近上传的照片。

提醒
你的程序应该能够通过电子邮件给用户发送提醒信息。用户比如同意通过电子邮件发送才能激活该功能,并且用户可以随时停止任何程序的电子邮件提醒。
消息附件
用户可以通过消息输入框下面的一个下拉菜单来创建消息的附件。用户添加了附件之后,该功能将提取内容并显示在消息输入框下面。

请求
你的程序应该能够在首页的右上角显示请求信息。这些请求通常由该用户的好友发出,并且要求该用户对其进行处理。例如在照片程序中,给照片添加标签的请求信息。

