How to Login with Facebook Graph API in PHP

By | September 26, 2015

728x90-popads_1

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

live_demo_button.fw_b-download

Make New Application on Facebook:

1. Visit https://developers.facebook.com/apps and click + Create New App.

facebook-graph-1

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

src

– base_facebook.php // Class Get user Info

– facebook.php // Class Get user Info

– config.php // Configuration file

images

html.inc // html design view

index.php // Main index file show data

 PHP Code

Edit config.php

Index.php

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

login-button

That’s All!

728x90-popads_1

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.