import com.restfb.Connection;
import com.restfb.DefaultFacebookClient;
import com.restfb.FacebookClient;
import com.restfb.types.Post;
import com.restfb.types.User;
public class Main {
public static void main(String[] args) {
String accessTokem = "EAACEdEose0cBAMZAo6pPx7qwHembLfDugT8UsBTKO4z1UxjPDkAqv0GFsZAWXTXI8X2IVIjQa8VtuztNJI0nOAlssa4EkUl71VIO3cZCyuun9rOQZA27DeFXeNepQZBmpEGqXHZCDmGssl5K8fGCuZC3LXhXZChGGwvcquZCQYv4HDRPUAUr4wiwkV9PROIuI2UQZD";
FacebookClient fbCLient = new DefaultFacebookClient(accessTokem);
User me = fbCLient.fetchObject("me", User.class);
Connection<Post> myFeed = fbCLient.fetchConnection("me/feed", Post.class);
System.out.println(me.getName());
System.out.print(myFeed);
}
}
ye use kr raha hn me
http://restfb.com/
lakin isme mje auth server side pe kaise krni ha wo nai smjh aa rahi. uss liy dosri wali ka bola tha use krny ko.
http://restfb.com/
lakin isme mje auth server side pe kaise krni ha wo nai smjh aa rahi. uss liy dosri wali ka bola tha use krny ko.
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.