English 中文(简体)
FQL Queries/API 电话使我一页的放慢(PHP SDK)
原标题:FQL Queries/API Calls make my page impossible slow (PHP SDK)

网页总装载时间从4-8秒不等,由于某种原因,该网页甚至开始装上,直到其发出APIC。 因此,即使主要的APIC电话在网页(和文字)的底线上,该网页上的任何东西都不会事先装满。

实现这一目标的最佳途径是什么? 最有问题的APICA电话是:

$result = $facebook->api( /fql?q=select+uid,+name,+is_app_user+from+user+where+uid+in+(select+uid2+from+friend+where+uid1=me())+and+is_app_user=1 );

用户朋友名单使用我的手套。 此外,我还发出多次电话,以获得不是该朋友的用户姓名。

如果不可能加快APICA电话的步伐,那么我如何能够在FQL运行期间至少接手我网页的其余部分?

最佳回答

脸谱透镜非常缓慢,如果绝对不能使用,你可能希望通过javascript api,而只能通过php。 阿贾克斯是你在这里的最佳朋友。 让客户打电话也只会使关键用户数据永远不会触及服务器,这为贵网站提供了很好的论据。 人民在这些日子里非常谨慎。

问题回答

暂无回答




相关问题
Brute-force/DoS prevention in PHP [closed]

I am trying to write a script to prevent brute-force login attempts in a website I m building. The logic goes something like this: User sends login information. Check if username and password is ...

please can anyone check this while loop and if condition

<?php $con=mysql_connect("localhost","mts","mts"); if(!con) { die( unable to connect . mysql_error()); } mysql_select_db("mts",$con); /* date_default_timezone_set ("Asia/Calcutta"); $date = ...

定值美元

如何确认来自正确来源的数字。

Generating a drop down list of timezones with PHP

Most sites need some way to show the dates on the site in the users preferred timezone. Below are two lists that I found and then one method using the built in PHP DateTime class in PHP 5. I need ...

Text as watermarking in PHP

I want to create text as a watermark for an image. the water mark should have the following properties front: Impact color: white opacity: 31% Font style: regular, bold Bevel and Emboss size: 30 ...

How does php cast boolean variables?

How does php cast boolean variables? I was trying to save a boolean value to an array: $result["Users"]["is_login"] = true; but when I use debug the is_login value is blank. and when I do ...

热门标签