Do you guys know why my server took like 15secs to retrieve data from Facebook Graph?
I tried to ping facebook server using my server, and it’s kinda stable 90-93ms.
Is it because of my server, or does it has something to do with PHP/cURL version?
This is the example of latest FB PHP-SDK Example.php, I only change the Timeout and insert the load time code :
http://www.foniara.com/facebook-php-sdk-5a88ed7/examples/example.php
Thanks
Facebook can definitely be slow when making API calls. It can be a good practice to store data locally after it has been retrieved and cache it for a while depending on what data you’re looking to retrieve. You can find out what the culprit is with Firebug by using the net tab. Chrome and IE have similar features, just press F12 to pull up their developer tools.
Are you running on a shared hosting platform or dedicated server? I have about a dozen servers and FaceBook works faster when I run the app on a dedicated server rather than one of my public ones.