Facebook Login With PHP SDK and Graph API
ฝัง
- เผยแพร่เมื่อ 15 ก.ย. 2024
- In this video we will add a Log In With Facebook button on our login form, we will create the Facebook application and using Facebook PHP SDK we will create a callback page to get an access token from Facebook to be able to get the user's information from Facebook.
This Facebook & Graph API & PHP Tutorials is for Beginners.
Source Code: github.com/ruv...
Related Video: Login With Google using PHP and MySQL:
• Login With Google Acco...
Microphone I Use
ZINGYOU Desktop Microphone - amzn.to/3kJJq5b (Amazon)
Laptop
ASUS VivoBook 15 Thin & Light Laptop - amzn.to/2ZZRtmD (Amazon)
Nice and detailed, thank you so much :)
Excellent explanation, thanks for sharing. Very good video
Thanks a lot for uploading, really saved me from stress.
one of the best tutorial for facebook php login, well done mate
Thank you so much for this great tutorial
You're welcome! Watch also Login With Google using PHP and MySQL: th-cam.com/video/M4jde7THXAI/w-d-xo.html
very helpful and useful. thank you so much
Thanks i will do it tomorrow inshalah
Great video, thanks for sharing
Thank you very much for your work.
It took me 3 hours to get to your video but I don't regret that time.
Do you have other videos with Google Login in or other social medias log ins? Would really appreciate it and I think your followers will appreciate it also :)
Thanks in advance for your reply & stay healthy!
That would be something to consider for the next tutorials. Thank you for your feedback!
New Video about how to Login With Google using PHP and MySQL: th-cam.com/video/M4jde7THXAI/w-d-xo.html
the best my soon
thank you very much
you help me full. good man
Excelente video, te lo agradezco
Thank you so much for this tutorial. Could you please make tutorial how can we integrate it with WordPress.
Thanks in advance.
I am searching to get an answer for this comment the whole day i wish if I get an answer!
Here you go! Login with Facebook for WordPress: th-cam.com/video/5iOtzIh0x9w/w-d-xo.html
@@hosammohamed7107 Here you go! Login with Facebook for WordPress: th-cam.com/video/5iOtzIh0x9w/w-d-xo.html
Amazing Tutorial
Great video. How would I add this login information into my data base? My dev abandon my website and need to fix my login for my game
This exactly what i need
ty so match bro for wonderfull video kindly share twiter, gmail ,Instagram etc again ty "Dill jit liya bhai"
Thank you for that explanation! I wonder, though, why you build the userData and the redirect within the "is not long-lived" section? What happens, if the token is automatically a long-lived one? Then the code would not execute, right? Would love to know, what your thoughts are! Thank you!
Спасибо. Полезно.
Muito útil, obrigado por compartilhar.
thank you!
Thanks for this video guide
I need help i am pulling the posts of facebook page and its stop after about two three months with this error: "Invalid OAuth 2.0 Access Token" how to check if Access Token expired and how to get new long range access token
Thanks.
Thanks. But I've done the same code as above, and it is not giving me anything other than id and name. How come?
how about adding social plugins and integrate it to another website???
Greeting. I need to be able to automatically share posts from the site to facebook. What is needed here? I don't need a button and login options, I just need to connect to automatically post posts from the wordpress site to my facebook page. I have a plugin but authorization is possible for free via PHP code. What do I need?
I might be wrong as I didn't look into it for a while now but I think that you need to give access to this kind of data from your Facebook app which you created on developers.google.com and then from there you just output the data using fb API. You might want to look at Facebook documentation as you might need to create a separate app designed specifically for this kind of jobs.
Please can you do same for twitter and Instagram? Thank so much
I will keep that in mind. Thank you!
why the back slashes in the Facebook object name?
hi your code is verry nice thanks for sharing :) , how about logout ? i create logout . and if i log out in website . localhost problem is my facebook is auto login ? it cant destroy session from localhost website . accesstoken session .
hope you help me :) thanks
Hi I have an error that shows "SDK Exception: Cross-site request forgery validation failed. Required param "state" missing from persistent data." please help thanks
Make sure to start the session before executing any script on both files
Some Error Come in my demo
App Not Setup: This app is still in development mode, and you don't have access to it. Switch to a registered test user or ask an app admin for permissions.
You didn't setup properly the Facebook app
Cza
how do i login with facebook business page?
How can I save user info to database
Please have a look at this tutorial about Login with Google where I show how to save the user in the database. You can use the same strategy for Facebook. Link: th-cam.com/video/M4jde7THXAI/w-d-xo.html
My code takes me back to login.php. Could you help?
me too :( do u have the solution for this? Please help
My FB account was hake can you help me recover.
Watching you manually download a composer package hurt my sole
am not see folder facebook on github of you ?
Hi! That's the php-graph-sdk in the Facebook folder. I didn't include it there because in time they update it and by the time people watch this video there may be a new version. That's why you should make sure to download the latest version of php-graph-sdk.
@@VicodeMedia thank you, can you have videos login token facebook auto like? Please
I will keep that in mind. Thank you!
how i make to logout? u can help me?
Just create a file which will destroy the session and put a link to that file on your page.
@@VicodeMedia ahhh, ok, thanks, easy
This is so badly explained. Your draw doesn't represent what you've done. You just went straight to the stuff and avoided making clear explanation about why is this requiring this and that. Basically, you have no idea how Facebook API works, you just copy and paste whatever you learned from other videos.
Hi, Adrian! Thank you for the feedback. Next time I will do my best to explain better.
Hi I have an error that shows "SDK Exception: Cross-site request forgery validation failed. Required param "state" missing from persistent data." please help thanks
u just didn't start the session... Start the session in config.php
Did you find the solution? i have the same issue