I am developing a photo viewer, which is a java desktop application and to integrate it with facebook I am using the Facebook4J library.
But I am clueless as to whe
You should retrieve an OAuthAppId from facebook. To do this, create an App on Facebook Developers and click "Create new app". Fill in the form, then copy paste the AppId and Appsecret from the page that appears in your code. Example:
confBuilder.setOAuthAppId("YOUR APPID HERE");
confBuilder.setOAuthAppSecret("YOUR APPSECRET HERE");
To get the AccessToken, you have to build a login flow as described here