简体   繁体   English

Facebook如何知道您何时停止在文章/图片中

[英]How does facebook knows when you stopped in an article/picture

First of all, I don't know if this is the right place to post this question. 首先,我不知道这是否是发布此问题的正确位置。 If it is, I'm sorry. 如果是,对不起。

Everytime you go through facebook newsfeed you stop at some image to look at it or an article that you found interesting but didn't click on it . 每次您浏览facebook newsfeed您都会停下来查看一些图片或您发现有趣但没有点击的文章 If you go to some page and come back to the newsfeed you will likely see the same image on the top of your newsfeed . 如果你去一些页面和回来的newsfeed ,你可能会看到你的顶部相同的图像newsfeed

I tried to look for some function/algorithm but didn't find any. 我试图寻找一些函数/算法,但没有找到任何函数/算法。

Others website doesn't have such feature eg Quora and mySpace . 其他网站则没有QuoramySpace这样的功能。

My question here is: How does Facebook knows that you stopped to look at that picture/article? 我的问题是: Facebook如何知道您停下来查看该图片/文章? if such function exists or it's only my stupid mind playing tricks on me. 如果存在这样的功能,或者只是我愚蠢的头脑在欺骗我。

I guess facebook detect your scroll position. 我猜facebook检测到您的滚动位置。

Every website can run a script that detect your scroll position every second, and then know if you're stopped (stay on the same position or same range of pixels for a while) in a post, picture or a video. 每个网站都可以运行一个脚本,该脚本每秒检测一次滚动位置,然后知道您是否在帖子,图片或视频中停下来(停留在相同位置或像素范围内一段时间)。 Then you can decide if the user find the content interesting or not. 然后,您可以决定用户是否觉得该内容有趣。

It's simple with jQuery: 使用jQuery很简单:

var s = $('body').scrollTop();

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 当您在Facebook聊天中收到新消息时,如何像Facebook一样更改文档标题 - How to change document's tittle as facebook does when you got a new message in the facebook chat 即使测试没有返回承诺,qunit 如何知道异步测试回调何时完成? - How does the qunit knows when the async test callback is complete even though the tests does not return promise? 当共享重新分享到Facebook本身时,Facebook为什么要更改“ FB.ui-图片”? - Why does Facebook change the “FB.ui - picture” when the share is resharing on facebook itself? 这个参数怎么知道arr的值 - How does this parameter knows the value of arr 如果没有事件处理程序,网页如何知道与元素交互的时间? - How does a web page knows when I interact with an element if it has no event handlers? 有谁知道在SoapUI中使用Javascript而不是Groovy作为默认脚本语言时如何导入新类? - Does anyone knows how to import new classes when using Javascript instead of Groovy as default scripting language in SoapUI? 如何使用Facebook api和帖子中的文章缩略图共享Facebook上的文章? - How to share articles on Facebook using Facebook api with article thumbnail in the post? 浏览器如何知道HTTP调用的状态已更改? - How does browser knows that the status of the an HTTP call changed? 您如何使用 Dropbox 和 Javascript 添加图片到 Codepen 然后在屏幕上显示时说出图片的名称? 示例包括 - How do you add a picture to Codepen using Dropbox and Javascript then the name of the picture spoken when displayed on the screen? Examples included Knockout JS如何知道要传递的正确参数? - How does Knockout JS knows the right parameter to pass?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM