Posts

Showing posts from August, 2021

Sign in with Facebook notes

 Sign in with Facebook notes  visit  Facebook for Developers  website.   Then login through your Account. Click on Get Started and verify your account. Now , We have create new app for that click on Create App button. after that , select Facebook login   through   web .  Insert the sdk code in web page and place your app id in code properly . download facebook sdk in your project folder root. using command composer require facebook/graph-sdk Create config.php file Add following code in  config.php  file <?php //start session on web page session_start ();    $fb  =   new  \Facebook\ Facebook ([      'app_id'  =>  '379937770193328' ,      'app_secret'  =>  '969eba7d010dc91ca38213ef3ba6fb56' ,      'default_graph_version'  =>  'v3.0' ]); ? >   in index.php file include...

sign in with Google Account in php , notes

 sign in with Google Account in php , notes Error :    Warning: count(): Parameter must be an array or an object that implements Countable in C:\xampp\htdocs\coretechtive\vendor\guzzlehttp\guzzle\src\Handler\CurlFactory.php on line 67 Solution :  The problem is in PHP 7.2 the parameter for count() can't be NULL. The warning gets displayed when $this->handles equals NULL. Just replace line 67 in CurlFactory.php with the following: if (($this->handles ? count($this->handles) : 0) >= $this->maxHandles) { Error : Notice : Undefined index: expires_in in  C:\xampp\htdocs\coretechtive\vendor\google\apiclient\src\Google\Client.php  on line  470 Solution  :       $expired  = ( $created       + ( $this -> token [ 'expires_in' ] -  30 )) <  time (); replace above with  below : $expired  = ( $created ) <  time (); Error : ...