HafizUmair / facebook-java-api

Automatically exported from code.google.com/p/facebook-java-api
0 stars 0 forks source link

Not able to use it #345

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Hi.
I am not able to find a proper example for this project to use. I just want my 
site user to loginw ith Facebook. So i will display facbook icon on my website 
and user clicks on it and it will take it to facebook and once user logged in 
it will come back to my site with user info. i.e. first name,email etc
But the example in wiki is not working. Can you please provide a proper exaple 
to work with this library.
i.e.
One function to generate the fb login url
and othe rfunction which will be callback after user login.

Thanks
Ravi.

Original issue reported on code.google.com by ping2r...@gmail.com on 14 May 2011 at 3:45

GoogleCodeExporter commented 8 years ago
I am using the facebook javascript library to do FB login and show profile pic 
and other info on the page.  There is the documentation on that 
(http://developers.facebook.com/docs/reference/javascript/FB.init/).  Once 
logged in to FB your FB app domain should start receiving FB cookies that 
facebook-java-api can process for server-side FB access.  You will need to 
patch the current version of this library in order for the cookies to get 
processed correctly. See issue issue 342 for my patch.  This library seems to 
be out of date with the FB cookie format.

NOTE: You only get cookies if you have cross-domain communication and if you 
are accessing your site via the domain name (i.e. http://localhost/xyz will not 
work).

Original comment by edru...@gmail.com on 30 Jun 2011 at 4:20