Package com.facebook.api

Examples of com.facebook.api.FacebookRestClient


      String apiKey, String secret) {
    this.request = request;
    this.response = response;
    this.apiKey = apiKey;
    this.secret = secret;
    this.apiClient = new FacebookRestClient(this.apiKey, this.secret);
    validateFbParams();
    // caching of friends
    String friends = fbParams.get("friends");
    if (friends!=null && !friends.equals("")) {
      List<Long> friendsList = new ArrayList<Long> ();
View Full Code Here


        }
      
       
       
       
        FacebookRestClient client = f.getFacebookRestClient();
      
       
        client.friends_get();
       
        FriendsGetResponse response = (FriendsGetResponse)client.getResponsePOJO();
        List<Long> friends = response.getUid();
       
        ModelMap rtn = ControllerUtil.getModelMap(req, userService);

        User user = userService.getUserByNicknameFullFetch("test");
View Full Code Here

        if(f.requireAdd("")){
            log.info("require add redirect");     
        }               
       
       
        FacebookRestClient client = f.getFacebookRestClient();
       
        Long userID = client._getUserId();
       
        String profileFBML = "profile from tocollege";

        String profileActionFBML = "action fbml";
       
        log.debug("User ID "+userID);

        try {
            log.debug("setFBML");
            client.profile_setFBML(profileFBML, profileActionFBML);

        } catch (FacebookException e) {
            if(e.getCode() == 102){
                log.warn("102 error requiring add...");
            }
View Full Code Here

TOP

Related Classes of com.facebook.api.FacebookRestClient

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.