Login with Facebook
In this tutorial , I will take you through as how can you make an application wherein you login with Facebook.
We will be using Facebook Graph API for this purpose.
You need to follow the below steps to get started.
- Visit https://developers.facebook.com/apps and click Create New App.
- You will then get an App ID & Secret to be used for your current application.
- Download the zip file from here.Then extract it and copy to your root directory.
- Edit config.php and change App ID & Secret to these values.
- Also change callback url to have your site path.
- Access index.php via your browser.
That’s all when you click on login with facebook button , you will be
redirected to Facebook’s login page.After entering your proper
credentials , you will be redirected to your site.
You will also have to add a logout button on your web page.However I have written the code in the file to logout.
A blogger
I am passionate blogger cum B.Tech. Computer engineering graduate. I love writing blog post. I spend my free time in writing blog post that will useful to everyone (including me). I have had some success making money blogging and want to help others do the same. I just figured that by creating a great and free resource a lot of links would follow – and they have. Some people ask me how they can repay me – which is not necessary - but for those wanting to show their appreciation, I just say linking to the article from their blog is the best compensation I could receive. Thanks for reading!
0 comments:
Post a Comment
Thanks for commenting. I will Reply you soon