Test Facebook App from Localhost
Posted: Thu Jul 21, 2011 4:23 am
Hi Everybody,
Can I use localhost to test the Facebook App. I have already tried with the following, but it comes up with no result.
1) I have tried with changing the windows host file which is under(path : c:/windows/system32/drivers/etc/), and then changing the httpd-vhosts.conf which you will find(path : xampp/apache/conf/extra/).
I have changed my localhost to local.sitename i.e http://local.sitename/ using the above.
2) Secondly, I tried use the following code
$ch = curl_init();
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2);
to stop the SSL verification.
3) Thirdly, I tried to put http://localhost:9000/ as call back url in Facebook App.
But i am getting the same error,
SSL certificate problem, verify that the CA cert is OK. Details: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
Can anyone please help, I think localhost is the problem for testing facebook app, and note that i am working in cloud environment. Please suggest me, can i use LOCALHOST for testing Facebook App.
Thanks in advance.
Can I use localhost to test the Facebook App. I have already tried with the following, but it comes up with no result.
1) I have tried with changing the windows host file which is under(path : c:/windows/system32/drivers/etc/), and then changing the httpd-vhosts.conf which you will find(path : xampp/apache/conf/extra/).
I have changed my localhost to local.sitename i.e http://local.sitename/ using the above.
2) Secondly, I tried use the following code
$ch = curl_init();
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2);
to stop the SSL verification.
3) Thirdly, I tried to put http://localhost:9000/ as call back url in Facebook App.
But i am getting the same error,
SSL certificate problem, verify that the CA cert is OK. Details: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
Can anyone please help, I think localhost is the problem for testing facebook app, and note that i am working in cloud environment. Please suggest me, can i use LOCALHOST for testing Facebook App.
Thanks in advance.