Description: Java wrapper for Facebook's GRAPH REST API
- you will need to have an active facebook app (appId,appSecret)
for more information check out : https://developers.facebook.com/docs/reference/api/
build the project with maven
(mvn clean install)
- to run the test - TestFacebook- class, fill in the facebookSDK.properties (in the 'src/test/resources' directory) with the missing parameters
- for the common use cases, check out the TestFacebook class
run mvn test on the project, don't forget to fill in the facebookSDK.properties
i.e: add the following to your project's (the one that uses the facebookSDK) pom.xml:
<dependency>
<groupId>me.fishbowl</groupId>
<artifactId>facebookSDK</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>
once a user logs into your app, you'll have the user's facebookID, AccessToken, Token-expiresIn and signedRequest with which you can initialize the FacebookSDKUSERAPI object:
i.e:
FacebookSDKUSERAPI facebookSDK = Facebook.getFacebookSDKUSER(facebookId, requestdata.getAccessToken(), requestdata.getExpiresIn(), requestdata.getSignedRequest());
and then use it like so:
FacebookUserData details = facebookSDK.getUserPublicDetails(facebookId);
- "Please open github issues"
GNU GENERAL PUBLIC LICENSE