SSL连接超时在facebook fql [英] SSL Connection timeout in facebook fql

查看:100
本文介绍了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张专辑,然后会出现如下所示错误


(!)致命错误:未捕获CurlException:28:SSL连接超时
抛出
D:\wamp\www\FrostBox1.0\Facebook\在线759上的FaceBookConnect\facebook-php-sdk\src\base_facebook.php


我可以做什么做错了?

解决方案


  1. 打开 base_facebook.php

  2. 找到 CURLOPT_CONNECTTIMEOUT => 10

  3. 将其更改为 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

( ! ) Fatal error: Uncaught CurlException: 28: SSL connection timeout thrown in D:\wamp\www\FrostBox1.0\Facebook\FaceBookConnect\facebook-php-sdk\src\base_facebook.php on line 759

What could I be doing wrong?

解决方案

  1. open base_facebook.php
  2. find CURLOPT_CONNECTTIMEOUT => 10
  3. change it to CURLOPT_CONNECTTIMEOUT => 30

That's it!

这篇关于SSL连接超时在facebook fql的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆