How to Login with Facebook Graph API in PHP

By | September 26, 2015


How to Login with Facebook Graph API in PHP

I have been working on facebook apps and connection with Facebook Graph API access token. This post will explain you how to integrate facebook connect in your website in easy way to connect and read the Facebook home timeline with PHP. Explained how to get facebook token and user id hope you like it. Thanks !

How to Login with Facebook Graph API in PHP


Make New Application on Facebook:

1. Visit and click + Create New App.


The script contains two folders called oAuth and images with PHP files.


– base_facebook.php // Class Get user Info

– facebook.php // Class Get user Info

– config.php // Configuration file

images // html design view

index.php // Main index file show data

 PHP Code

Edit config.php


While clicking Login with Facebook button URL requesting Facebook Graph API with contains your web project redirection URL:


That’s All!


5 thoughts on “How to Login with Facebook Graph API in PHP

  1. plentyoffish sign in page

    Howdy! Someone in my Myspace group shared this site with us so I
    came to check it out. I’m definitely loving the information. I’m bookmarking
    and will be tweeting this to my followers! Great blog and fantastic design.

  2. Plenty Of Fish Forums

    Great weblog right here! Also your web site lots up very fast!
    What host are you using? Can I get your associate hyperlink to
    your host? I wish my website loaded up as quickly as yours lol

Comments are closed.