游戏邦在:
杂志专栏:
gamerboom.com订阅到鲜果订阅到抓虾google reader订阅到有道订阅到QQ邮箱订阅到帮看

Facebook新功能显示应用加载时间及Iframe对话权限

发布时间:2011-06-14 14:42:55 Tags:,,

游戏邦注:本文作者为Josh Constine,文章主要讲述Facebook添加功能,Insights能够显示应用加载时间及Iframe对话权限。

日前Facebook在其开发者博客表示如今开发商能够在Insights查看其应用页面加载时间,同时还罗列了iframe对话禁止权限。需注意的是Open Graph页面图像宽度应在180像数以上,且显示在页面帖子侧边。

Insights Load Time from insidefacebook.com

Insights Load Time from insidefacebook.com

如今若开发商的Canvas iframe应用包含Javascript SDK中的FB.Canvas.setDoneLoading访问功能,应用的Insights Dashboard’s Performance标签就会显示页面加载时间(游戏邦注:单位是毫秒)。Facebook文件称加载时间是“以用户接收到首个字节为起始时间,以用户访问该功能为结束时间。”

开发商还能够使用stopTimer和startTimer访问功能来排除特定加载时间。添加数据至Insights能够方便开发商发现加载问题,在未波及更多用户群前及时处理。开发商同时还能够了解加载时间、转换率和跳出率之间的关系,判断缓慢的加载页面是否会伤及业务。

出于安全原因,Facebook限制用户使用iframe对话,用户获得初步授权后,还需得到敏感许可,方能使用iframe对话。使用Javscript SDK的用户无需采取任何行动,但使用display=iframemust的用户如今就得自行弹出窗口,使用display=popup呈现对话。如下权限将不再获得允许:

read_stream

manage_friendlists

read_mailbox

sms

xmpp_login

ads_management

read_insights

read_requests

manage_pages

这个变更将限制用户传送敏感数据或通过非安全渠道访问其广告帐户、电话簿、收件箱、Pages、Insights及其他重要私人内容的权利。

使用Open Graph标记语言帮助Facebook更好呈现其内容的网站如今只能针对宽幅180像数以上的图像使用og:image标签(游戏邦注:若其希望图像能够呈现在发布的消息动态旁)。

OG Publishing Sample from insidefacebook.com

OG Publishing Sample from insidefacebook.com

这表明使用Like按钮的网站在使用发布消息动态权利时应确保其og:image标签有添加至足够大的图像中。(本文为游戏邦/gamerboom.com编译,如需转载请联系:游戏邦

Platform Update: Insights Shows App Load Times, Iframe Dialog Permission

By Josh Constine

In the Developer Blog’s latest Platform Update, Facebook announced that developers can now view the page load times for their applications in Insights. It also listed iframe dialog permissions that are no longer permitted, and noted that Open Graph page images must have a minimum width of 180 pixels to be displayed next to posts made by that page.

Now, if developers include the call FB.Canvas.setDoneLoading from the Javascript SDK in their Canvas iframe applications, their app Insights Dashboard’s Performance tab will show their page load times in milliseconds. Facebook’s documentation states that the load time is tracked “beginning from the time when the first bytes arrive on the client, and ending from the point at which you call this function.”

Developers can also use the stopTimer and startTimer calls to exclude portions of the loading time from being counted. The addition of this data to Insights will make it easy for developers to identify loading issues and address them before they impact more of their user base. Developers can also track the connection between load time, conversion rate, and bounce rate to determine whether slow loading pages are hurting business.

For security reasons, Facebook has disallowed the use of iframe dialogs for requesting certain kinds of sensitive permissions after the initial authorization and permissions prompt. Those using the Javscript SDK won’t have to do anything, but those using display=iframemust now pop their own window and use display=popup to display the dialog. The following permissions are no longer allowed:

read_stream

manage_friendlists

read_mailbox

sms

xmpp_login

ads_management

read_insights

read_requests

manage_pages

The change will protect users from passing sensitive data or the ability to access their ad account, phone, inbox, Pages, Insights, and other important private content through a less secure channel.

Websites using the Open Graph markup language to help Facebook better present their content must now only use the og:image tag on images with a minimum width of 180 pixels if they want them displayed next to news feed updates they publish.

This means sites using the Like button should ensure their og:image tags are appended to large enough images if they take advantage of the ability to publish news feed updates to those that Like them.(Source:insidefacebook


上一篇:

下一篇: