Authentification failed! Facebook returned an invalide user id., HybridAuth / PHP Facebook SDK authentication failed (getUser returns 0), CurlException: 60: SSL certificate problem

undefined

I'm trying to configure HybridAuth and I'm in the very early stages. Right now all I want to do is connect and make sure HA will redirect to facebook and prompt for app installation, then authenticate the user when they get back.


to solve this problem by altering the base_facebook.php class in the PHP SDK and adding the curlopt to ignore the SSL verification step. See below:


public static $CURL_OPTS = array(
    CURLOPT_CONNECTTIMEOUT => 10,
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_TIMEOUT        => 60,
    CURLOPT_USERAGENT      => 'facebook-php-3.1',
);
and add this (CURLOPT_SSL_VERIFYPEER => false)

public static $CURL_OPTS = array(
    CURLOPT_CONNECTTIMEOUT => 10,
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_TIMEOUT        => 60,
    CURLOPT_USERAGENT      => 'facebook-php-3.1',
    CURLOPT_SSL_VERIFYPEER => false
  );
Save Url in CSV using IMACROS, iMacro JavaScript Extracting values ការប្រើ iMacro ដើម្បីបង្កើត csv file and adding new line - (0 comments)
DRAG AND DROP NESTABLE MENU ON PHP AND MYSQL AND JQUERY - (4 comments)
How to create Menu and Sub menu, How to use Recursion Function in Codeigniter recursive function, Php, MySQL - (0 comments)

0 comments:

Post a Comment

Followers

រឿង ដែលខានមើលមិនបាន

Contact us

Name

Email *

Message *

Your Language

Online

Copyright 2009 Simplex Celebs All rights reserved Designed by www.sruol9.com