Hi guys,
I'm trying to post to my timeline through the facebook open graph api. I'm not sure what else I need and I couldn't find an updated tutorial to help me out. What the program should do (although most of this isn't put in yet) is you, the user, should be able to click a button and post a status to facebook through my website. I think I need their facebook ID but I'm not sure if I need anything else.


package postToFacebookTest;
 
import com.restfb.DefaultFacebookClient;
import com.restfb.FacebookClient;
import com.restfb.Parameter;
import com.restfb.Version;
import com.restfb.types.FacebookType;
 
 
 
 
 
 
public class postToFacebookTest {
 
	public static void main(String[] args) {
 
 
		String accessToken = "access token";
 
	FacebookClient fbClient = new DefaultFacebookClient(accessToken, Version.LATEST);
 
		FacebookType response = fbClient.publish("me/feed",FacebookType.class, Parameter.with("message", "Java Graph API Test")); 
 
		System.out.println("fb.com/"+response.getId());
 
 
 
 
 
 
	}
 
}