Login using Google Account with Codeigniter

Поделиться
HTML-код
  • Опубликовано: 25 окт 2024

Комментарии • 45

  • @tanvirhaque5153
    @tanvirhaque5153 4 года назад +2

    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.

  • @manojmahadadalkar2965
    @manojmahadadalkar2965 4 года назад

    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

  • @yofioktanda_3321
    @yofioktanda_3321 4 года назад

    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.

  • @ArjunYadav-np4fh
    @ArjunYadav-np4fh 3 года назад

    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 ?

  • @asifraza6249
    @asifraza6249 4 года назад +1

    Bro waiting patiently for your video on follow unfollow system

  • @muhammadimron1841
    @muhammadimron1841 2 года назад

    Sir, could you tell me where does the $_GET['code'] come from, because i had this error, "undefined array key code"

  • @gamerankster-uranusplayer-6611
    @gamerankster-uranusplayer-6611 4 года назад +1

    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

  • @unboxkarunadu372
    @unboxkarunadu372 4 года назад

    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...

  • @abdallahabdedaiem51
    @abdallahabdedaiem51 3 года назад

    google api client library folder is added to external vendor folder even thought I'm running the command within libraries folder. Someone can help?

  • @mohammadidhamfachrurrozi8045
    @mohammadidhamfachrurrozi8045 4 года назад

    Great tutorial sir ! Thanks very useful !!!

  • @marceloguerrero1244
    @marceloguerrero1244 4 года назад

    How can i do to the information doesn't show in the url?

  • @jeffdiazzi
    @jeffdiazzi 4 года назад

    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?

  • @renganathanjh6215
    @renganathanjh6215 4 года назад +1

    How to create graphical password authentication system in web application... using php and mysql
    Please give to some Idea

    • @asifraza6249
      @asifraza6249 4 года назад +1

      Do you mean by Google authenticator a.k.a f2 factor authentication

    • @renganathanjh6215
      @renganathanjh6215 4 года назад +1

      @@asifraza6249 I mean how to insert text password instead of image password..

    • @asifraza6249
      @asifraza6249 4 года назад +1

      Okay bro thanks for letting me now and this password feature will amazing too
      I also want webslesson to make this feature

    • @renganathanjh6215
      @renganathanjh6215 4 года назад

      @@asifraza6249 thank you so much bro...

  • @fidafathima832
    @fidafathima832 4 года назад +1

    The OAuth client was not found. sir am having this error. how can solve this

  • @tokpekossi7846
    @tokpekossi7846 4 года назад

    Great tutorial sir ! Thanks

  • @harphavidhani1500
    @harphavidhani1500 3 года назад

    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?

  • @adriandeguinto617
    @adriandeguinto617 4 года назад

    Where can I see the download file?

  • @shashankmorekar2559
    @shashankmorekar2559 4 года назад

    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

  • @shahmaarbaba
    @shahmaarbaba 4 года назад

    please make a MLM Binary Software full tutorial

  • @sherkan_n
    @sherkan_n 4 года назад

    Thx man, very useful

  • @kenkenfrancisco1043
    @kenkenfrancisco1043 2 года назад

    can i request the vector folder file in the libraries folder

  • @wa3274
    @wa3274 4 года назад

    how to deal with the error Undefined index: expires_in?

    • @manideepg6407
      @manideepg6407 4 года назад

      hey bro
      i got same error
      did you solved it

  • @PlayerOfCode
    @PlayerOfCode 4 года назад

    awesome

  • @manideep_talampally
    @manideep_talampally 4 года назад

    Sir make same video in codeigniter4 please.

  • @mostafijarrahman1036
    @mostafijarrahman1036 4 года назад

    tnx sir......

  • @rupindamanalu8297
    @rupindamanalu8297 4 года назад

    thanks sir

  • @dastgirakhtar9782
    @dastgirakhtar9782 4 года назад

    waiting

  • @unboxkarunadu372
    @unboxkarunadu372 4 года назад

    Thanks for the response ❣️❣️😍😍 much needed sir

  • @InspireNext360
    @InspireNext360 4 года назад

    provide download link

  • @hyzulfadli8289
    @hyzulfadli8289 4 года назад

    t.q sir

  • @roiunger7796
    @roiunger7796 4 года назад +1

    Hi hero!! Please make tutorial on firebase auth with php 🙏

  • @sahilshah9212
    @sahilshah9212 4 года назад

    make video on google login using laravel

  • @iputuagussetiawan5674
    @iputuagussetiawan5674 4 года назад

    Please Help to create facebook login with codeignter sirr, thank q..

  • @haticesayan4512
    @haticesayan4512 3 года назад

    I am getting this error : Call to undefined method Google\Client::add_scope(). Does anyone know the solution? Thanks.

    • @haticesayan4512
      @haticesayan4512 3 года назад

      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').