Login With Google Account Using PHP & Client API & Bootstrap Design

Поділитися
Вставка
  • Опубліковано 9 лис 2024

КОМЕНТАРІ • 449

  • @SenaidBacinovic
    @SenaidBacinovic  6 років тому +3

    Do you want to become a web developer from scratch??? Check this: bit.ly/devAccelerator

    • @TV-vu9fg
      @TV-vu9fg 5 років тому

      Thanks for your video, but I have a problem since I am a beginner.When I use localhost server, it cannot redirect to the callback.php, saying "localhost doesn't send any data ERR_EMPTY_RESPONSE".

    • @whatwhywhy
      @whatwhywhy 5 років тому

      thanks for this lesson . your source code free but maybe bad code for commercial or bot in your source code . tahnks your answ.

    • @amiyaghosh6869
      @amiyaghosh6869 5 років тому

      Can u make a tutorial how to store google user info on database

    • @ankitajaswani810
      @ankitajaswani810 5 років тому

      I m getting an error in config.php line 8 as

    • @ahsanjutt4598
      @ahsanjutt4598 3 роки тому

      @@ankitajaswani810 May your api library isn't download completely. check for autolaod.php in folder.

  • @yitzchaksviridyuk932
    @yitzchaksviridyuk932 4 роки тому +7

    Even though it's almost 3 years later, this tutorial has helped me very much. Your teaching style is not too fast or too slow, and this lesson did exactly what it said it would. Thank you very much.

    • @SenaidBacinovic
      @SenaidBacinovic  4 роки тому +1

      You're very welcome!

    • @yitzchaksviridyuk932
      @yitzchaksviridyuk932 4 роки тому

      @@SenaidBacinovic 😁

    • @spiderangelo
      @spiderangelo 4 роки тому

      @@SenaidBacinovic I would like to communicate with you my email id is spiderangelo@gmail.com plz provide ur mail id

  • @cxvoiqw9917
    @cxvoiqw9917 5 років тому +1

    I bookmarked your phpmailer, fb login and google login because I got a remote work that they need me to implement these tasks. Thank you so much! You're a great help.

  • @gerardobrunoleonpanti3018
    @gerardobrunoleonpanti3018 6 років тому +1

    Dude! that's the way to be straightforward: concise and right to the point! Really found enjoyable and worth watching your vid since it works, I already shared with my classmates. One thing I wanted to add up, for those who miss the implementation of the Log-out button (if you have the code provided by Senaid's web page):
    //after line 51 in index.php add this code
    Log-out

    • @gerardobrunoleonpanti3018
      @gerardobrunoleonpanti3018 6 років тому +1

      Another tip: if you want to retrieve, and not only display, account's givenName, familyName, and so on (such as in a use case where you want to store that information in your own database), don't forget to add scopes to the config.php, in my case i wanted to store givenName and familyName and email from the account so:
      //in config.php add this to...
      $gClient->addScope("www.googleapis.com/auth/plus.login www.googleapis.com/auth/userinfo.email www.googleapis.com/auth/userinfo.profile www.googleapis.com/auth/plus.me");

    • @SenaidBacinovic
      @SenaidBacinovic  6 років тому

      Thank you so much for nice words, sharing with your classmates and also helping others in this community with tips on how to do additional things on the code. You're amazing!

  • @ClintonRyanThompson
    @ClintonRyanThompson 2 роки тому

    THANK YOU SO MUCH for making this!!! I've been scouring the web to figure this out - BEST VIDEO EVER!

  • @haksenguz
    @haksenguz 3 роки тому +2

    Thank you very much! It was a very useful tutorial. I was finally able to make Google Sign in to my website. I have a question sir. As I am new to PHP I did not how to make Google sign in on my hosted website. Iuploaded Google API library to my webserver and made Google sign in. It was difficult to do it, since it took long time to upload 30MB file to the server. In web development in commercial websites, when making Google sign in, do you also upload large file to server? Or it is done by other ways? I will be genuinely glad, if you answer me! Thank you!

  • @Ayman_Hassan
    @Ayman_Hassan 4 роки тому +1

    Before watching this video I didn't know the way it login by Google account but now I think that I can do it easily by following your video
    thanks bro ❤

  • @alessiobianchini928
    @alessiobianchini928 6 років тому +5

    Thank you, this is exactly what I searched for the entire morning!

  • @inclinedscorpio
    @inclinedscorpio 5 років тому +1

    That's the kind of AT THE POINT TUTORIAL || You delivered what was needed !

  • @rohansaand2023
    @rohansaand2023 7 років тому +2

    damn bro, about to reach 1000 subs
    so quick from the first 500, you are killing it!

    • @SenaidBacinovic
      @SenaidBacinovic  7 років тому +2

      Thank you so much! It wouldn't be possible without the help of my followers. :)

  • @pixelhouseco
    @pixelhouseco 4 роки тому +1

    Sorry for my English but it is a translator. my question is: are all the files that your code has necessary? I uploaded it to my subdomain and there are more than 6000 files, obviously replacing index, login, etc. can some be removed?

  • @Great_Pyramid_of_Paris
    @Great_Pyramid_of_Paris 5 років тому +1

    You didn't do the logout part. Or did I miss? How to login with google+ with different accounts?

  • @sajabz2007
    @sajabz2007 6 років тому +3

    I don't do comments but, I will make an exception just this once. Bravo. Great vid. Cheers!

  • @_daniel24
    @_daniel24 7 років тому +1

    Hello Senaid, your content helps me so much to learn web development.
    I'd like to see a tutorial about paypal payments, for example i'd like this functionality:
    1. User fills a price form.
    2. User gets redirected to PayPal.
    3. If the transaction was successfully completed, insert the data from the first step into database.
    I tried doing this myself but i can't really get it to work, and also i want to see the secure way to do this.
    Thanks for your tutorials, and keep up the good work, you are awesome !

    • @SenaidBacinovic
      @SenaidBacinovic  7 років тому +1

      Awesome, I am so happy that I could help you. :D
      I will for sure make one tutorial that will cover everything about PayPal payments so that you can integrate it into your website and start selling products/services.

  • @ravikumarturamalla21
    @ravikumarturamalla21 5 років тому +1

    I tried the API but got guzzlehttp certificate error. Gone to Client class of Guzzlehttp folder of GoogleApi and set configure defaults function verify to false. Works like a charm. Thanks for the awesome tutorial.

  • @revanslacey
    @revanslacey 4 роки тому

    One of the better explained tutorials. Thank you.

  • @MikkoVille
    @MikkoVille 6 років тому +3

    Excellent. Simple and to the point. Thank you for this!

  • @ahsanjutt4598
    @ahsanjutt4598 3 роки тому

    Kindly share the link where we can learn more about scopes.

  • @michellebarzilai6281
    @michellebarzilai6281 6 років тому +4

    Great tutorial, thanks!! but I do have a question - when I tried to run this on my web server it didn't work (error 500 on the gcallback page), but when I tried running it on localhost it worked perfectly. Anyone knows what could it be?

  • @andreighita8762
    @andreighita8762 5 років тому

    The 'id" scope is the unique id that google has for every user? Or what it represents exactly?

  • @patrick-dev
    @patrick-dev 4 роки тому

    Thanks for the tutorial. I just have a quick question and would like you to provide me with a good suggestion: Is there any way to minimize or compress the google SDK file? Because its too heavy.

  • @hafizzubairalikhan6946
    @hafizzubairalikhan6946 5 років тому

    Hi sir, which editor you are using?

  • @anselmdike2817
    @anselmdike2817 2 роки тому +2

    very nice tutorial

  • @jasurbekyuldoshev2673
    @jasurbekyuldoshev2673 6 років тому

    i have 1 question , the way u taught us was from login page to index.php right ? i mean from 1 page to another page, my question is how to implement the same thing but for single-page-application when contents of page changes according to if a user is authenticated or not... Thanks in advance !

  • @erindgjyshja8545
    @erindgjyshja8545 6 років тому

    Great Job - never watched any of your videos before but I am subscribed just from this.

  • @suluabdullahi101
    @suluabdullahi101 4 роки тому

    Thank You Mr. Coding Passing. But i want to know how someone can fetch a particular user data when Login to a page base on id in SELECT Statement. Pls Help!!

  • @hardiksomaiya8989
    @hardiksomaiya8989 7 років тому +1

    Great tutorial my friend. You made it simple and easy to understand. Helped a lot. Thanks

    • @SenaidBacinovic
      @SenaidBacinovic  7 років тому

      Thank you so much! Appreciate the feedback! :)

  • @xalfaprint
    @xalfaprint 6 років тому

    Hello, very good tutorial, but there is something that is not working, in my system downloaded the zip package of the tutorial, the function that negotiates the token fails as if it did not exist .. (maybe the file is corrupt), or missing some piece is integrated, I have no problem in the PHP version and I only have a problem for the detection of this function. What adjustments do I make? That is the question. Thank you very much for your response beforehand. PHP.5.6.30 Windows

  • @angelsantiago8190
    @angelsantiago8190 7 років тому +1

    Senaid great video. If I'm creating this for a client would I need to create the API in Google Development with the clients credentials, or would I create API for the client using my credentials in Google Development? What would be the best practice?

    • @SenaidBacinovic
      @SenaidBacinovic  7 років тому +1

      Thank you :)
      It all depends on the project, and also from the deal that you have with that specific customer. In most cases, personally, I, will just use client credentials.

  • @SinghatehAlagie
    @SinghatehAlagie 5 років тому

    hello sir, i want to make something for my school management system that is working with, but I don't have any idea how to make the students receive information from the teacher or the principal and the teacher will able to set an exam for the students based on their id and enable and disable students that are not active. That is the things that I want from my student management system. Could you please help me and explain it to me in detail. thank you so much... your video is helping me a lot to learn coding fast.

  • @mirjanakatalina591
    @mirjanakatalina591 6 років тому +1

    Ovo je super. Svaka čast! Hvala ti

  • @lborealtv
    @lborealtv 5 років тому

    Hi, greettings from Argentina.
    I have a cuestion.
    I am working with php too.. I want to store the refresh token in my database to use the token of the user while the user is not on my site. I am building a application that manages the user account (Obviously.. with the user authorization)..
    How could i get the Refresh token? Thnx

  • @acente2998
    @acente2998 7 років тому

    Thank you for this!!! I was wondering, though, using this OAuth method, instead of using a Sign in with Google button, can you instead retrieve input from an email and password text field? Meaning, the users will type in their G-mail credentials in the text field and when they hit sign-in, the system will use the credentials in the input fields to authenticate with Google? thanks!

    • @SenaidBacinovic
      @SenaidBacinovic  7 років тому +1

      Hmm, why would you do that?

    • @acente2998
      @acente2998 7 років тому +1

      Coding Passive Income
      hi! nevermind! this method you used was the better one thank you and keep up with the nice tutorials

    • @SenaidBacinovic
      @SenaidBacinovic  7 років тому +2

      Thank you so much, and I am sorry that it took a month for me to reply to your comment, but I've lost it in the dozens of others.

  • @KSabitaSadiqShahabuddin
    @KSabitaSadiqShahabuddin 4 роки тому

    will it work when we have a live web server ?

  • @saisumanth3042
    @saisumanth3042 6 років тому

    Hii Senald bro,I am trying to build oAuth 2.0(i.e,Login with "mycompany") for a company as an intern,Can you just tell me how can i relate this video to me!!!And can you suggest any other thing for my project??
    Thank you and finally,You are awesome Bro!!

  • @x1_medusa_1x
    @x1_medusa_1x 7 років тому +1

    hey. I love your videos! can you tell me please, what software do you use ?! thank you !

  • @derik4622
    @derik4622 5 років тому

    What extension do you use to show your array in such a nice order on chrome?

    • @Felix15Koeln
      @Felix15Koeln 5 років тому +1

      Derik Stavast he echoed the tag

  • @anthonyleong3011
    @anthonyleong3011 6 років тому

    Hello Sir, how can we know if user signed out in google , we also need to execute sign out them from our system , how can we do this ?

  • @enfragygis9402
    @enfragygis9402 5 років тому

    Thanks for your video, but I have a problem since I am a beginner.When I use localhost server, it cannot run the code. I am getting syntax error on login.php. Help me to reslove it.

  • @JakubScherbaum
    @JakubScherbaum 7 років тому

    Hi, nice video tutorial.
    I wanna ask you, how to allow specific users to log-in ? Is there any way to do it via Google Dev console or i have to make it out in my code? The only way that comes on my mind is to compare user ID after login. Is it right or there is some security issue?

    • @SenaidBacinovic
      @SenaidBacinovic  6 років тому

      That's completely fine, there is nothing wrong with that approach.

  • @menaveen06
    @menaveen06 5 років тому +1

    Could we get the Google Login example using Gmail API, because Google + plus, should be blocked by the Google.

  • @MehDi-de2ru
    @MehDi-de2ru 5 років тому

    Thanks, That answer the question : how to simply use the oauth2 api . However your example is not secure, anyone can forge a session variable and create an access token and then have access to the index.php page .

    • @a.yashwanth
      @a.yashwanth 4 роки тому

      Then what's the secure method?

    • @MehDi-de2ru
      @MehDi-de2ru 4 роки тому

      @@a.yashwanth Check the validity of the access token

  • @RamKumar-de2ps
    @RamKumar-de2ps 5 років тому +1

    Awesome man..... I am looking for this one.... Great job.......

  • @desarrolladorcii5091
    @desarrolladorcii5091 5 років тому +1

    Thank you very much, days ago I was looking for this. The best method I found. regards

  • @cumaelvis4612
    @cumaelvis4612 3 роки тому

    hello, for the connection using either google, facebook, twiter and other ... can't we register these users who connect in the MYSQL database? I say that because I made a form for checking emails with the OTP code so I will integrate this connection with google, facebook, twitter, instagram ... can you tell me please

  • @siyabuddin410
    @siyabuddin410 4 роки тому

    Really informative and workfull criteria i also lerant alot of things from your tutorials.

  • @fabienekoutesone6046
    @fabienekoutesone6046 4 роки тому +1

    tkanks you
    Good bless you FAbien from Cameroun

  • @cxvoiqw9917
    @cxvoiqw9917 5 років тому

    Hi, I got GET Request 404 after a successful login, I am redirected to 404 page. I followed all your instructions in the video. Is this because the Google+ API is now shutdown? Do you have alternative for this? Thanks.

  • @bennyjwalter566
    @bennyjwalter566 4 роки тому

    Thanks for the course.

  • @aky017
    @aky017 6 років тому +1

    Svaka čast! Zbilja si mi uštedio puno vremena. Pozdrav iz Hrvatske.

  • @eziochannel9373
    @eziochannel9373 4 роки тому

    u earned my subs bro, keep it up. I like your explaination

  • @amiyaghosh6869
    @amiyaghosh6869 5 років тому +1

    Can u make a tutorial how to store google user info on database

  • @vinodkumarmannem8473
    @vinodkumarmannem8473 6 років тому +1

    Hi thanks for your effort.Can you please create new video login with google using codeigniter framework.

    • @SenaidBacinovic
      @SenaidBacinovic  6 років тому

      I am sorry but I am not using CodeIgniter framework, so I can't promise.

  • @denniscamacho9259
    @denniscamacho9259 4 роки тому

    Hi sir, i'm your new Follower :) and i tried your stuff, i get the users details except for the Gender, i don't know if its just the google API problem or my code but i just copied what you've done and the Gender doesn't coming out or listed, any help would much appreciated thanks :)

  • @honeybehmeni1263
    @honeybehmeni1263 7 років тому +1

    Sir can you tell me how I can post on page through PHP sdk and graph explore.thanks sir.

  • @djosfr
    @djosfr 6 років тому +1

    great video. Raw Php as you show it is clean code for a dev environement. Cheers from France.

  • @ArjunSingh-qt5jn
    @ArjunSingh-qt5jn 4 роки тому +1

    yes, you saved my life
    Keep coming more videos :)

  • @tipsmobillegends6553
    @tipsmobillegends6553 3 роки тому +1

    Thank you so much 👍

  • @shailesh2278
    @shailesh2278 6 років тому

    Hey @SenaidBacinovic how can I logout form index and login with another email?
    It login with same email when I logged in again....but I want to to login with another mail...
    Thanks for this awesome video.

    • @SenaidBacinovic
      @SenaidBacinovic  6 років тому

      Thank you. You will need to log out manually from your Google account, and after that try to log in again.

    • @shailesh2278
      @shailesh2278 6 років тому

      Is it not possible to logout from index.php and login with another email from login.php without going through gmail logout? :-)

    • @SenaidBacinovic
      @SenaidBacinovic  6 років тому

      Please read this for awesome explanation: stackoverflow.com/questions/12909332/how-to-logout-of-an-application-where-i-used-oauth2-to-login-with-google/12909563#12909563 :)

    • @shailesh2278
      @shailesh2278 6 років тому +1

      Thanks alot Senaid

  • @techstruct4784
    @techstruct4784 4 роки тому

    Is it nessary to store this data into the database to retrive its data for email and password field functions?

  • @sahooramakanta2884
    @sahooramakanta2884 5 років тому

    How to do it without google+ and only with gmail API, as google plus API has already shut down?

  • @siluncai7341
    @siluncai7341 6 років тому +1

    Wow...great tutorial.... thanks dude...so awesome...i gonna try this tomorrow...

    • @SenaidBacinovic
      @SenaidBacinovic  6 років тому

      Thank you! Have you tried it? :)

    • @siluncai7341
      @siluncai7341 6 років тому

      Yea, I just try it, and its working ! Thanks for sharing your knowledge bro. Now i need to working on modifying it to my own style of coding. Thumbs Up! Does GoogleAPI allowed to give response with much more details information? such as Age, Address, Country, etc.

  • @weforyouweb1165
    @weforyouweb1165 5 років тому +1

    Good one! Helpful.Thank you.

  • @sownthear.d6418
    @sownthear.d6418 5 років тому +1

    I am getting syntax error on login.php at 9th line...Help me to reslove it

  • @yaznachtar9045
    @yaznachtar9045 5 років тому

    Awesome video, but i seem to get an error on the g-callback.php, the site gives me an error 500 for some reason despite pasting your code on the g-callback.php page.
    I went to check the google apis, and it’s enabled but also gives an error saying “page loading error. Refresh this page to try again”
    Any ideas
    Many thanks for reading

    • @SenaidBacinovic
      @SenaidBacinovic  5 років тому

      There has to be some issue in the code if you get 500. Please analyze it a little bit more, and make sure that you are using your details etc.

  • @yashraval9984
    @yashraval9984 4 роки тому

    So the user cannot just type in index.php into the url bar and access the page?

  • @girishv8829
    @girishv8829 7 років тому +1

    Please do video on dependent select tag .

    • @SenaidBacinovic
      @SenaidBacinovic  7 років тому +1

      Girish V There is already one. :)
      Here you go ua-cam.com/video/XVsMCtA1Jow/v-deo.html

  • @joanteran1297
    @joanteran1297 5 років тому +1

    Hi Men! Excelent video, thanks you very much!

  • @fomz21
    @fomz21 4 роки тому

    Thank you for this! you made it look so easy

  • @darshanprajapati2942
    @darshanprajapati2942 6 років тому

    Great Job Gentleman....I really Like It ..

  • @ILTECHS
    @ILTECHS 5 років тому +1

    Very nice tutorial !!!

  • @KartikAnand123
    @KartikAnand123 7 років тому +4

    Awesome,Great Video dude........U r doing a very nice job.....!!!

  • @aruppaul4317
    @aruppaul4317 5 років тому +1

    The code is running well for 2 days..but now its shows warning: curl_setopt_array(): unable to create temporary file in GogleApi/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php on line 56
    I am using google api version 2.2.2.

  • @tommieboy1997
    @tommieboy1997 6 років тому

    Hallo thanks for this tutorial! I only got 1 question: I follow your Facebook SDK login too and it works for me but when I try to add this google too it I cant get it too work do you have a vid how I got both to work on the same website?

    • @SenaidBacinovic
      @SenaidBacinovic  6 років тому

      What is the problem? They should work without any problem if you implement it just by watching videos.

    • @tommieboy1997
      @tommieboy1997 6 років тому

      Got this error: "Error: invalid_client The OAuth client was not found." and after that you can find some Requist Details. Like the client_ID , redirect_url, response type, acces_type ect.

    • @SenaidBacinovic
      @SenaidBacinovic  6 років тому

      Are you sure that your code is correct? Can you show me?

    • @tommieboy1997
      @tommieboy1997 6 років тому

      This is my config.php: "" i think here is the problem otherwise I have no clue what the problem is

    • @SenaidBacinovic
      @SenaidBacinovic  6 років тому

      Your code is looking good, so please check this: stackoverflow.com/questions/17166848/invalid-client-in-google-oauth2

  • @habetech
    @habetech 4 роки тому

    dobar video ,svaka čast na trudu !

  • @ijpterror77
    @ijpterror77 7 років тому +1

    THANK YOU SO MUCH YOU ARE BEST EVER !!! If possible please help us on HOW TO CREATE PAYMENT GATEWAY FOR SHOPPING OR E'COMMERCE WEBSITE .... THANKS ... :-)

    • @SenaidBacinovic
      @SenaidBacinovic  7 років тому +2

      Immanuel Joshua Paul Thank you! I will make a tutorial about that for sure! :)

  • @envadd.6556
    @envadd.6556 2 роки тому

    Zemo imam jedno pitanje za tebe a tice se login pa ako bi mi mogao dati neko svijetlo na to posto sam stuck lol. Naime pokusavam napraviti program koji ce biti online ili cloud based, ali hocu da koristim jednu scriptu gdje ce ljudi moci imati account a zatim moci dodati sub-accounts koji ce moci vidjeti samo stvari vezane za taj main account. Inspiracija je od Weebly ili Square gdje svi idu na jednu adresu a onda vidi samo sto je njihovo iako je shared website.. Jel takvo nesto moguce ili pametno i kako da to aproach nemogu da savladam taj koncept ili ga previse komplikujem...

  • @ameebadiyani243
    @ameebadiyani243 4 роки тому

    Is it for a particular google user? Or anybody having google account can sign In?

  • @pozzseth8926
    @pozzseth8926 6 років тому

    can you tell me about software user

  • @tushersuvro
    @tushersuvro 6 років тому

    Hi Thanks for posting this wonderful video. I am getting this error "Fatal error: Call to undefined method Google_Client::setApplicaionName()" Can you let me know how to fix it? Thanks.

    • @SenaidBacinovic
      @SenaidBacinovic  6 років тому

      tushersuvro you have typo mistake, it needs to be:
      setApplicationName()
      not
      setApplicaionName()

    • @tushersuvro
      @tushersuvro 6 років тому

      Thanks Senaid.How silly I am! Now I am facing this error after coming to g-callback.php "Fatal error: Call to undefined function GuzzleHttp\Handler\curl_reset() " Can you also tell me how to fix it?

    • @tushersuvro
      @tushersuvro 6 років тому

      Thanks Senaid.How silly I am! Now I am facing this error after coming to g-callback.php "Fatal error: Call to undefined function GuzzleHttp\Handler\curl_reset() " Can you also tell me how to fix it? (later added) I think I have found this error cause. I had to be at PHP 5.4 above to work. When I run the code in PHP 5.6 it worked like your video. Thanks again for posting wonderful video. Take care

  • @mitchellaninyang12
    @mitchellaninyang12 6 років тому

    Uhmm, I got confused at some point, when you copied a link into your code, what link was that please?

  • @simpsonfong2472
    @simpsonfong2472 4 роки тому +1

    Sir, I'm having issue of sign out to google.
    When I click sign out button it successfully sign out and redirect to login page, but when I click login button again it just redirect to index page which is remember my account that been login.
    It should destroy the access token and when I click login button it needs to select account again and get the permission again to redirect to index page.
    Can sir or any viewers help me to solve this problem if you see this comments?

    • @yifangyuan4998
      @yifangyuan4998 4 роки тому

      i'm having the same issue. Would really appreciate if someone can solve this.

  • @1979DY
    @1979DY 5 років тому

    Thanks a lot for the video it was very helpful

  • @agehjeremiah
    @agehjeremiah 5 років тому +1

    Excellent!!!

  • @sharadrokade5803
    @sharadrokade5803 6 років тому +1

    very very good...thanks for sharing knowledge

  • @ikiyavasudevan2900
    @ikiyavasudevan2900 6 років тому

    Good work.. makes too easy to work with.. is there any tutorial like this for twitter login..?

    • @SenaidBacinovic
      @SenaidBacinovic  6 років тому

      thank you :)
      I don't have it at the moment, but I am sure you can find some on UA-cam.

  • @jackvaughn2364
    @jackvaughn2364 3 роки тому

    i love it! Thank you bro!

  • @virajlifestyle447
    @virajlifestyle447 5 років тому +1

    you are doing great job , really helpful

  • @musictioficial8273
    @musictioficial8273 6 років тому

    Hi i have a question. I am developing a website and integrated the facebook login. At first was testing the ogin with on gmail account and it worked perfectly, i deleted the app permisison on facebook, deleted also in my c panel, deleted it my chache, everything. When i tried to create an account with facebook using the same account it says "sorry email not received by post" , yet when i go to my facebook account in the app section i see my app registered on facebook, but not my cpanel to create the account to give acces to the user to acces the page for the service i am providing. Why is that happening?

  • @sivareddy6823
    @sivareddy6823 6 років тому

    awesome tutorial sir,can u help me for "how to get comments from google+ using php and api?"

  • @vikraantvishwakarma7954
    @vikraantvishwakarma7954 6 років тому +1

    On localhost working fine. but on server Google auth showing HTTP 403 error forbidden

    • @sarakhan-nb7vc
      @sarakhan-nb7vc 5 років тому +1

      I am also getting same error. Have your issue solved ?

    • @vikraantvishwakarma7954
      @vikraantvishwakarma7954 5 років тому

      please discuss with your hosting provider bcoz sometime they block mod security. now my code working fine.

    • @parulrawat8194
      @parulrawat8194 5 років тому

      @@vikraantvishwakarma7954 really its working fine? on server

  • @mojar2680
    @mojar2680 6 років тому +1

    Thanks for the tutorial, only the part that you styled te page was kinda meh. (Mostly because i came for the technical part)

    • @SenaidBacinovic
      @SenaidBacinovic  6 років тому

      I didn't want to miss anything in the tutorial, because there are people who need it all step-by-step. I am sorry if you had hard time to find what you're looking for. :)

  • @barathmanikandan688
    @barathmanikandan688 6 років тому +1

    I am getting, Access Forbidden! Error 403. What to do to rectify the error?

    • @sarakhan-nb7vc
      @sarakhan-nb7vc 5 років тому

      I am also getting same error. Have your issue solved ?

  • @Aqua_Pla
    @Aqua_Pla 4 роки тому

    Hello what is it? Please help me! Fatal error: Uncaught Error: Call to undefined method Google_Client::setRedirectUrl()

  • @peacefulhack
    @peacefulhack 5 років тому

    can u help me, i got an error for g-callback, it said "Fatal error: Uncaught GuzzleHttp\Exception\RequestException: cURL error 77: error setting certificate verify locations: CAfile:......GoogleAPI\vendor\guzzlehttp\guzzle\src\Handler\CurlFactory.php on line 187"

  • @cutemail4348
    @cutemail4348 5 років тому

    How to do it without google+ scope as its already shut down.

  • @dvrsdheeraj7776
    @dvrsdheeraj7776 6 років тому

    Hello sir, When retrieving user information curl is sending connection refused error message could you please resolve

  • @woutervermeersch9145
    @woutervermeersch9145 7 років тому

    Awesome as usual ! :) how could I safely check if user is logged in correctly? exemple: $stmt = $conn->prepare("SELECT user_accestoken FROM User WHERE user_accestoken = ?");
    $stmt->bind_param( "s", $_SESSION['access_token']);
    $stmt->execute();
    $stmt->store_result();
    if($stmt->num_rows >0)
    {
    echo "You are logged in succesfully"';
    }
    or is the above not safe or inefficiënt regarding to the server recourses.

    • @SenaidBacinovic
      @SenaidBacinovic  7 років тому +1

      Hmm, one thing that I don't understand is why do you even check does it exist in the database or not?

    • @woutervermeersch9145
      @woutervermeersch9145 7 років тому

      I was just guessing that that way was more secure? ... so from you're opinion this is as secure as it can get? ... after a user logs in all the data he edits, will be adjusted in the database according to $_SESSION['token'] = user_token, does the token ever changes? and when does it change?

    • @SenaidBacinovic
      @SenaidBacinovic  7 років тому +1

      I think that before you go into deeper topic of when/how the token changes, there is ONE thing that you will need to take into consideration... Are you doing anything else with that token, are you using it later or only on callback page?
      In most cases, you're using it on callback page, so in order to make sure that current visitor is logged in, you just need to verify that there is some session key that you will use to verify if someone is logged in or not, and if that key is not there, just redirect the visitor to your login page.
      However, if you're using the token for anything else, then still you will always have it inside the session, and you just need to make sure that you catch any error on every API call. If there is an error, that in most cases means that your token is not working, but you can always read the error and see what's wrong.

    • @woutervermeersch9145
      @woutervermeersch9145 7 років тому

      thank you so much for you're feedback!
      I am not yet 100% confident with the security of php some times because I mainly don't understand the security holes. Maybe I'll find a lesson from you explaining al possible security vulnerabilities in php in the future ;) for now on I am protected on my site with: brute force, sanitizing input, prepared statements and a generated form field session token, it was told to me to check the token every time the form action is activated.
      To get back to this topic: how could I manipulate the time a user is signed in? I guess the answer is using cookie variables instead of session variables but I don't know the techniques .

    • @SenaidBacinovic
      @SenaidBacinovic  7 років тому

      I think that you're doing a pretty great job with the security of your website! What do you mean by "manipulate", can you elaborate on that?

  • @piyush_dolar
    @piyush_dolar 6 років тому

    where can i find documentation if i want to display user's timeline post into webpage !

    • @SenaidBacinovic
      @SenaidBacinovic  6 років тому

      Check this: developers.google.com/identity/sign-in/web/people

  • @AlexShoyhit
    @AlexShoyhit 6 років тому +1

    Very helpful thank you very much
    Missing one issue in video
    If you're getting backend errors, you should try to retry the service. If you're getting a certificate error, try the following:
    Save the following to cacert.pem: curl.haxx.se/ca/cacert.pem
    put it here:
    C:\xampp\php\extras\ssl\cacert.pem
    in your php.ini put this line in this section:
    ;;;;;;;;;;;;;;;;;;;;
    ; php.ini Options ;
    ;;;;;;;;;;;;;;;;;;;;
    curl.cainfo = "C:\xampp\php\extras\ssl\cacert.pem"
    restart your webserver/apache

    • @SenaidBacinovic
      @SenaidBacinovic  6 років тому

      Thank you for nice words and also for helping others with the certificate error. Great job!