I am wondering how I can see exactly what webrequests I am receiving from Facebook?
我想知道如何才能看到我从Facebook收到的网络请求到底是什么?
Lets say that we are on Facebook event and I want to invite all my 1000 friends. I start clicking all my friends one by one and at some point Facebook sets a limit of 498 and then I continue to do all the clicks until I reach 498 and then it says you cant invite anyone else.
让我们说我们正在Facebook活动,我想邀请我所有的1000个朋友。我开始逐个点击我的所有朋友,在某些时候Facebook设置了498的限制,然后我继续做所有的点击,直到我达到498,然后它说你不能邀请其他人。
Facebook to do this at some point sends back an ajax.php
page as a packet and sets this limit. This ajax php page i'm trying to find somehow. I've tried some ajax jQuery capture Chrome extensions but I dont quite understand them much.
Facebook在某些时候执行此操作会将ajax.php页面作为数据包发送回来并设置此限制。这个ajax php页面我试图以某种方式找到。我已经尝试了一些ajax jQuery捕获Chrome扩展,但我不太了解它们。
Do you have any idea of how I can track any ajax php request from Facebook to my browser to set this limit?
您是否知道如何跟踪Facebook上的任何ajax php请求到我的浏览器设置此限制?
I am using Chrome Extension Live HTTP Headers and this shows me anything that Facebook webrequest is "POST" in my browser.
我正在使用Chrome扩展Live HTTP标头,这向我展示了Facebook webrequest在我的浏览器中“POST”的任何内容。
But i dont think its actually all of them. Because its only loading the photos of the chat and some thread updates.
但我不认为它实际上是所有这些。因为它只加载聊天的照片和一些线程更新。
Here is a video of what limitation is showing in my frame of friends invite in facebook.
这是一个视频,显示我的Facebook朋友邀请框中显示的限制。
Youtube视频在这里。
3 个解决方案
#1
1
Press F12 and find the network requests section of your browser's dev tools.
按F12并找到浏览器开发工具的网络请求部分。
http://www.devtoolsecrets.com/secret/general-finding-the-development-tools.html
#2
1
I think you are misunderstanding the process. Web servers don't send requests to web browsers. They only respond to requests sent from the web browser.
我认为你误解了这个过程。 Web服务器不会向Web浏览器发送请求。它们仅响应从Web浏览器发送的请求。
When you click to invite friends you are sending an ajax request to Facebooks server. That ajax request passes the information about the event, you and your friend to a method on the server. Part of that method is to check and see if the limit on invitations has been exceeded. If not it sends your invitation and sends a response to your ajax request showing this person was invited. However if the limit has been reached the invitation is not sent and the response comes back from your ajax request stating that the limit has been exceeded.
当您点击邀请朋友时,您正在向Facebook服务器发送ajax请求。该ajax请求将有关事件的信息,您和您的朋友传递给服务器上的方法。该方法的一部分是检查并查看是否已超出邀请限制。如果没有,它会发送您的邀请并向您的ajax请求发送回复,表明此人已被邀请。但是,如果已达到限制,则不会发送邀请,并且会从您的ajax请求返回响应,指出已超出限制。
If you know what your doing, you use Chrome or Firefox developers tools to debug javascript and follow the ajax request to the server and the response from the server. But this is difficult with the minified javascript. There are tools to deminify the javascript making it easier.
如果您知道自己在做什么,可以使用Chrome或Firefox开发人员工具来调试javascript,并遵循服务器的ajax请求和服务器的响应。但是这对于缩小的javascript来说很难。有一些工具可以简化javascript,使其变得更容易。
However, if you're looking for a way around the invitation limit. It's not going to happen. This all occurs on the Facebook servers to which you do not have access.
但是,如果您正在寻找绕过邀请限制的方法。这不会发生。这一切都发生在您无法访问的Facebook服务器上。
#3
1
Try to use Fiddler (http://www.telerik.com/fiddler). With Fiddler you can see all requests (also HTTPS requests with an intermediate certificate), modify those or simply replay requests. It's worth a try and a must have for each web developer
尝试使用Fiddler(http://www.telerik.com/fiddler)。使用Fiddler,您可以查看所有请求(也包括带有中间证书的HTTPS请求),修改这些请求或只是重放请求。值得一试,每个Web开发人员都必须拥有
#1
1
Press F12 and find the network requests section of your browser's dev tools.
按F12并找到浏览器开发工具的网络请求部分。
http://www.devtoolsecrets.com/secret/general-finding-the-development-tools.html
#2
1
I think you are misunderstanding the process. Web servers don't send requests to web browsers. They only respond to requests sent from the web browser.
我认为你误解了这个过程。 Web服务器不会向Web浏览器发送请求。它们仅响应从Web浏览器发送的请求。
When you click to invite friends you are sending an ajax request to Facebooks server. That ajax request passes the information about the event, you and your friend to a method on the server. Part of that method is to check and see if the limit on invitations has been exceeded. If not it sends your invitation and sends a response to your ajax request showing this person was invited. However if the limit has been reached the invitation is not sent and the response comes back from your ajax request stating that the limit has been exceeded.
当您点击邀请朋友时,您正在向Facebook服务器发送ajax请求。该ajax请求将有关事件的信息,您和您的朋友传递给服务器上的方法。该方法的一部分是检查并查看是否已超出邀请限制。如果没有,它会发送您的邀请并向您的ajax请求发送回复,表明此人已被邀请。但是,如果已达到限制,则不会发送邀请,并且会从您的ajax请求返回响应,指出已超出限制。
If you know what your doing, you use Chrome or Firefox developers tools to debug javascript and follow the ajax request to the server and the response from the server. But this is difficult with the minified javascript. There are tools to deminify the javascript making it easier.
如果您知道自己在做什么,可以使用Chrome或Firefox开发人员工具来调试javascript,并遵循服务器的ajax请求和服务器的响应。但是这对于缩小的javascript来说很难。有一些工具可以简化javascript,使其变得更容易。
However, if you're looking for a way around the invitation limit. It's not going to happen. This all occurs on the Facebook servers to which you do not have access.
但是,如果您正在寻找绕过邀请限制的方法。这不会发生。这一切都发生在您无法访问的Facebook服务器上。
#3
1
Try to use Fiddler (http://www.telerik.com/fiddler). With Fiddler you can see all requests (also HTTPS requests with an intermediate certificate), modify those or simply replay requests. It's worth a try and a must have for each web developer
尝试使用Fiddler(http://www.telerik.com/fiddler)。使用Fiddler,您可以查看所有请求(也包括带有中间证书的HTTPS请求),修改这些请求或只是重放请求。值得一试,每个Web开发人员都必须拥有