Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I use Facebook JAVA API in my application? [closed]

Tags:

java

facebook

I have downloaded facebook-java-api-3.0.2-bin from http://code.google.com/p/facebook-java-api/
for connecting to face book.I want to use this api in my java application to connect Facebook.I am developing a desktop application for this purpose.I have created account on Face book and registered as a developer.

Is it possible to connect Facebook from my java application?

If yes please, can some one send me the example code for that and treat me as a New Bee in this facebook integration?

Thanks in advance.

like image 916
Prakash Panjwani Avatar asked Jan 07 '10 17:01

Prakash Panjwani


People also ask

How do I log into Facebook using Java?

On access of an url or in welcome page the Facebook Login button is shown. The user will click the FB button to login into the Java web application. On click of that button a Facebook URL will be invoked. Facebook will validate the application ID and then will redirect to its login page.

Is Facebook API a REST API?

Yes, it is a REST API as well. Show activity on this post. Yes, there have been 3 Facebook API's to date: Legacy REST.


2 Answers

Have you tried out the various examples available in the api wiki?

http://code.google.com/p/facebook-java-api/wiki/Examples

Google also returns various tutorial pages:

http://programmaremobile.blogspot.com/2009/01/facebook-java-apieng.html

http://www.socialjava.com/socialjavastepbystep.html

You should try working through some of these and posting specific questions about problems you run into.

like image 112
Doug Porter Avatar answered Oct 13 '22 10:10

Doug Porter


Note that the facebook-java-api project is now dead.

Use instead: http://restfb.com/

like image 40
Black Avatar answered Oct 13 '22 10:10

Black