In the libraries folder, no vendor folder has come after running composer require google/apiclient:"^2.0" command. please, suggest to me what happened there.
Sir my humble request to you is please create a project similar to webinar which is used to conduct online classes and seminar, it contains public chat, member connected to session. It has an admin panel and member panel. Sir please. Your videos are best to learn new things. Thanks for your support sir
Please answer, I hardly get any reply from you. After logout the session data is clear but when i click the login button it shows the last login data. Why ?
Sir now as you're opening the follow un follow system system sir please can sperate the section for text and images e.g. text on the bottom and video, url, and image on the every top like Instagram because I tried to do it myself but I didn't got it. So please add this feature to follow un follow system also
My one more request is their sir, please make an video tutorial on custom search based on today, yesterday, this week, month etc.... Using codeigniter framework...
When i try to use composer in the libraries folder, instead of download the packages there, it downloads to the base folder of the application, i don't know if that's the reason why my application is not working... (i changed the include_once path), but seems like it just jump this role bunch of code: if(isset($_GET["code"])) { $token = $google_client->fetchAccessTokenWithAuthCode($_GET["code"]);
if(!isset($token["error"])) { $google_client->setAccessToken($token['access_token']); $this->session->set_userdata('access_token', $token['access_token']); $google_service = new Google_Service_Oauth2($google_client); $data = $google_service->userinfo->get(); $current_datetime = date('Y-m-d H:i:s'); var_dump($data); if($this->google_login_model->Is_already_register($data['id'])) { //update data $user_data = array( 'first_name' => $data['given_name'], 'last_name' => $data['family_name'], 'email_address' => $data['email'], 'profile_picture'=> $data['picture'], 'updated_at' => $current_datetime ); $this->google_login_model->Update_user_data($user_data, $data['id']); } else { //insert data $user_data = array( 'login_oauth_uid' => $data['id'], 'first_name' => $data['given_name'], 'last_name' => $data['family_name'], 'email_address' => $data['email'], 'profile_picture' => $data['picture'], 'created_at' => $current_datetime ); $this->google_login_model->Insert_user_data($user_data); } $this->session->set_userdata('user_data', $user_data); } } to the button creation, in fact, if i comment this code above, i get the same result...it's not saving any session values, or updating/saving user data on database, any help?
A PHP Error was encountered Severity: Warning Message: Trying to access array offset on value of type null Filename: views/google_login.php Line Number: 23 Backtrace: File: C:\xampp\htdocs\tutorial\codeigniter\application\views\google_login.php Line: 23 Function: _error_handler File: C:\xampp\htdocs\tutorial\codeigniter\application\controllers\Welcome.php Line: 23 Function: view File: C:\xampp\htdocs\tutorial\codeigniter\index.php Line: 315 Function: require_once help me, what is solution?
I solved this using $google_client->setScopes(array('www.googleapis.com/auth/userinfo.profile', 'www.googleapis.com/auth/userinfo.email')); instead of add_scope('email') and add_scope('profile').
In the libraries folder, no vendor folder has come after running composer require google/apiclient:"^2.0" command. please, suggest to me what happened there.
Sir my humble request to you is please create a project similar to webinar which is used to conduct online classes and seminar, it contains public chat, member connected to session. It has an admin panel and member panel. Sir please. Your videos are best to learn new things. Thanks for your support sir
Nice tutorial, but will be much better if you showing the debugging process too, because I see some missing name of function or syntax. Thanks.
Please answer, I hardly get any reply from you. After logout the session data is clear but when i click the login button it shows the last login data. Why ?
Bro waiting patiently for your video on follow unfollow system
Sir, could you tell me where does the $_GET['code'] come from, because i had this error, "undefined array key code"
Sir now as you're opening the follow un follow system system sir please can sperate the section for text and images e.g. text on the bottom and video, url, and image on the every top like Instagram because I tried to do it myself but I didn't got it. So please add this feature to follow un follow system also
My one more request is their sir, please make an video tutorial on custom search based on today, yesterday, this week, month etc.... Using codeigniter framework...
google api client library folder is added to external vendor folder even thought I'm running the command within libraries folder. Someone can help?
Great tutorial sir ! Thanks very useful !!!
How can i do to the information doesn't show in the url?
When i try to use composer in the libraries folder, instead of download the packages there, it downloads to the base folder of the application, i don't know if that's the reason why my application is not working...
(i changed the include_once path), but seems like it just jump this role bunch of code:
if(isset($_GET["code"])) {
$token = $google_client->fetchAccessTokenWithAuthCode($_GET["code"]);
if(!isset($token["error"])) {
$google_client->setAccessToken($token['access_token']);
$this->session->set_userdata('access_token', $token['access_token']);
$google_service = new Google_Service_Oauth2($google_client);
$data = $google_service->userinfo->get();
$current_datetime = date('Y-m-d H:i:s');
var_dump($data);
if($this->google_login_model->Is_already_register($data['id'])) {
//update data
$user_data = array(
'first_name' => $data['given_name'],
'last_name' => $data['family_name'],
'email_address' => $data['email'],
'profile_picture'=> $data['picture'],
'updated_at' => $current_datetime
);
$this->google_login_model->Update_user_data($user_data, $data['id']);
}
else {
//insert data
$user_data = array(
'login_oauth_uid' => $data['id'],
'first_name' => $data['given_name'],
'last_name' => $data['family_name'],
'email_address' => $data['email'],
'profile_picture' => $data['picture'],
'created_at' => $current_datetime
);
$this->google_login_model->Insert_user_data($user_data);
}
$this->session->set_userdata('user_data', $user_data);
}
}
to the button creation, in fact, if i comment this code above, i get the same result...it's not saving any session values, or updating/saving user data on database, any help?
How to create graphical password authentication system in web application... using php and mysql
Please give to some Idea
Do you mean by Google authenticator a.k.a f2 factor authentication
@@asifraza6249 I mean how to insert text password instead of image password..
Okay bro thanks for letting me now and this password feature will amazing too
I also want webslesson to make this feature
@@asifraza6249 thank you so much bro...
The OAuth client was not found. sir am having this error. how can solve this
re-create Credential
Great tutorial sir ! Thanks
A PHP Error was encountered
Severity: Warning
Message: Trying to access array offset on value of type null
Filename: views/google_login.php
Line Number: 23
Backtrace:
File: C:\xampp\htdocs\tutorial\codeigniter\application\views\google_login.php
Line: 23
Function: _error_handler
File: C:\xampp\htdocs\tutorial\codeigniter\application\controllers\Welcome.php
Line: 23
Function: view
File: C:\xampp\htdocs\tutorial\codeigniter\index.php
Line: 315
Function: require_once
help me, what is solution?
Where can I see the download file?
I am unable to get o/p from your code sir does it requires server hosting or will it work from local host please anyone help me
it work on local host
please make a MLM Binary Software full tutorial
Thx man, very useful
can i request the vector folder file in the libraries folder
how to deal with the error Undefined index: expires_in?
hey bro
i got same error
did you solved it
awesome
Sir make same video in codeigniter4 please.
tnx sir......
thanks sir
waiting
Thanks for the response ❣️❣️😍😍 much needed sir
provide download link
t.q sir
Hi hero!! Please make tutorial on firebase auth with php 🙏
make video on google login using laravel
Please Help to create facebook login with codeignter sirr, thank q..
I am getting this error : Call to undefined method Google\Client::add_scope(). Does anyone know the solution? Thanks.
I solved this using $google_client->setScopes(array('www.googleapis.com/auth/userinfo.profile', 'www.googleapis.com/auth/userinfo.email')); instead of add_scope('email') and add_scope('profile').