Using the Facebook Graph APIs PHP library

Posted by briggins5 on Stack Overflow See other posts from Stack Overflow or by briggins5
Published on 2010-04-22T22:18:09Z Indexed on 2010/04/22 22:23 UTC
Read the original article Hit count: 375

Filed under:
|
|

I am using the PHP library for the Graph API (http://github.com/facebook/php-sdk) but am a bit confused about how it is all working (or not).

I just want to authenticate the user and get the user ID back. What I really want to know is what to do once the user has logged in to Facebook and returned to my site. There is data called 'session' in the URL. Does this need to be stored in order to continually get the user ID? It is really not apparent, to me, from the samples or (lack of) documentation.

Also, would it be easier to just cut out the PHP library altogether and just handle the reponse myself, storing it in a session variable. If i were to do this, what is the best method of getting/extracting the current users ID?

© Stack Overflow or respective owner

Related posts about facebook

Related posts about php