本文介绍了SSL连接超时在facebook fql的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
使用fql我得到用户的相册列表
$ client = new Facebook(array('appId'=>'xxxx','secret'=>'xxxxxx'));
$ fql_albums =SELECT aid,name from album where owner = $ user_Id;
$ albumId = $ client-> api(array(
'method'=>'fql.query',
'access_token'=> $ user_access_token,
'query'=> $ fql_albums,
));
获取此列表后,我运行查询以获取相册中的所有照片,然后下载该相册然后移动到下一张专辑。
它只下载2张专辑,然后会出现如下所示错误
我可以做什么做错了?
解决方案
- 打开
base_facebook.php
- 找到
CURLOPT_CONNECTTIMEOUT => 10
- 将其更改为
CURLOPT_CONNECTTIMEOUT => 30
就是这样!
I am using facebook api to get backup of the facebook photos using access_token and fql.
Using fql I got the list of albums of the user
$client = new Facebook(array('appId' => 'xxxx', 'secret' => 'xxxxxx'));
$fql_albums = "SELECT aid,name from album where owner=$user_Id";
$albumId = $client->api(array(
'method' => 'fql.query',
'access_token' => $user_access_token,
'query' => $fql_albums,
));
After getting this list I run a query to get all the photos in the album and then download that album and then moves to the next album.
It only download 2 albums and then gets an error as shown below
What could I be doing wrong?
解决方案
- open
base_facebook.php
- find
CURLOPT_CONNECTTIMEOUT => 10
- change it to
CURLOPT_CONNECTTIMEOUT => 30
That's it!
这篇关于SSL连接超时在facebook fql的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!