Package com.restfb.types

Examples of com.restfb.types.Page


  public void fetchObject() {
    out.println("* Fetching single objects *");

    User user = facebookClient.fetchObject("me", User.class);
    Page page = facebookClient.fetchObject("cocacola", Page.class);

    out.println("Name: " + user.getName());
    out.println("Username: " + user.getUsername());
    out.println("Email: " + user.getEmail());
    out.println("ID Facebook: " + user.getId());
View Full Code Here


                                            System.out.println("access tocken=" + temp2);
                                            access_token = temp2[1];
                                            new GraphReaderExample(access_token).runEverything();
                                            facebookClient = new DefaultFacebookClient(access_token);
                                            User user = facebookClient.fetchObject("me", User.class);
                                            Page page = facebookClient.fetchObject("cocacola", Page.class);
                                            // userName = user.getName();
                                           //  userMail = user.getEmail();
                                           
                                            authFrame.dispose();
                                            /********/
 
View Full Code Here

  void fetchObject() {
    out.println("* Fetching single objects *");

    User user = facebookClient.fetchObject("me", User.class);
    Page page = facebookClient.fetchObject("cocacola", Page.class);

    out.println("User name: " + user.getName());
    out.println("Page likes: " + page.getLikes());
  }
View Full Code Here

TOP

Related Classes of com.restfb.types.Page

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.