www.facebook.com - ping display error 302

I have a Facebook social plugin and Facebook display error 302 with 993ms when page tested. What is the solution?


[quote]URL: https://www.facebook.com/connect/ping?client_id=603935506344919&domain=www.thejobs.com.my&origin=1&redirect_uri=http%3A%2F%2Fstatic.ak.facebook.com%2Fconnect%2Fxd_arbiter%2FV80PAcvrynR.js%3Fversion%3D41%23cb%3Df304aadd09ad024%26domain%3Dwww.thejobs.com.my%26origin%3Dhttp%3A%2F%2Fwww.thejobs.com.my%2Ff120e9c4b563171%26relation%3Dparent&response_type=token%2Csigned_request%2Ccode&sdk=joey
Host: www.facebook.com
Location: Menlo Park, CA
Error/Status Code: 302
Client Port: 4500
Start Offset: 4.079 s
DNS Lookup: 27 ms
Initial Connection: 245 ms
SSL Negotiation: 442 ms
Time to First Byte: 279 ms
Content Download: ms
Bytes In (downloaded): 0.7 KB
Bytes Out (uploaded): 0.9 KB[/quote]

[quote]GET /connect/ping?client_id=603935506344919&domain=www.thejobs.com.my&origin=1&redirect_uri=http%3A%2F%2Fstatic.ak.facebook.com%2Fconnect%2Fxd_arbiter%2FV80PAcvrynR.js%3Fversion%3D41%23cb%3Df304aadd09ad024%26domain%3Dwww.thejobs.com.my%26origin%3Dhttp%253A%252F%252Fwww.thejobs.com.my%252Ff120e9c4b563171%26relation%3Dparent&response_type=token%2Csigned_request%2Ccode&sdk=joey HTTP/1.1
Accept: image/gif, image/jpeg, image/pjpeg, image/pjpeg, application/x-ms-application, application/x-ms-xbap, application/vnd.ms-xpsdocument, application/xaml+xml, /
Referer: http://www.thejobs.com.my/
Accept-Language: en-us
User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.2; Trident/4.0; Data Center; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; PTST 2.377)
Accept-Encoding: gzip, deflate
Host: www.facebook.com
Connection: Keep-Alive[/quote]

[quote]HTTP/1.1 302 forced.302
Location: http://static.ak.facebook.com/connect/xd_arbiter/V80PAcvrynR.js?version=41#cb=f304aadd09ad024&domain=www.thejobs.com.my&origin=http%3A%2F%2Fwww.thejobs.com.my%2Ff120e9c4b563171&relation=parent&error=unknown_user
X-Content-Type-Options: nosniff
Pragma: no-cache
X-XSS-Protection: 0
Cache-Control: private, no-cache, no-store, must-revalidate
Expires: Sat, 01 Jan 2000 00:00:00 GMT
X-UA-Compatible: IE=edge
Content-Type: text/html; charset=utf-8
X-FB-Debug: OUFw6W8UBEJi0HdLgHrD29cP48lSecgWDQ+5IQsSM50+TzXC8NKOcddYa3nNmvTtqqmXg7ZbCDaRVxusP5NCIw==
Date: Sun, 15 Jun 2014 06:57:49 GMT
Connection: keep-alive
Content-Length: 0[/quote]

302 is a redirect, not an error and I assume it’s how that specific beacon is implemented on facebook’s side. Given the “ping” name I assume it’s some form of tracking. Are there any options for the plugin you have embedded? Are you embedding the widget asynchronously (not with a blocking script tag)? Usually they’re pretty good at not blocking onload.

My plugin code :




Like THEJOBS on Facebook

Looks about as async as you will be able to control on your side. I wouldn’t worry about it at this point since the only thing it is affecting is the facebook widget itself. If you REALLY want to get it out of the way you can run the script in an onload handler but the user experience will be the same (it just won’t count towards your onload time).