Examples of FacebookLink


Examples of org.springframework.social.facebook.api.FacebookLink

  // internal helpers
 
  private void postToWall(Connection<Facebook> connection, Account account, WebRequest request) {
    if (request.getAttribute(POST_TO_WALL_ATTRIBUTE, WebRequest.SCOPE_SESSION) != null) {
      connection.getApi().feedOperations().postLink("Join me at the Greenhouse!", new FacebookLink(account.getProfileUrl(), "Greenhouse", "Where Spring developers hang out.",
        "We help you connect with fellow application developers and take advantage of everything the Spring community has to offer."));
      request.removeAttribute(POST_TO_WALL_ATTRIBUTE, WebRequest.SCOPE_SESSION);
    }
  }
View Full Code Here

Examples of org.springframework.social.facebook.api.FacebookLink

  public void loadFeed() {
    feedIds = new ArrayList<String>();
    feedIds.add(fb.feedOperations().updateStatus("Hello Facebook"));
    feedIds.add(fb.feedOperations().updateStatus("How's it going?"));
    feedIds.add(fb.feedOperations().updateStatus("Okay, goodbye!"));
    feedIds.add(fb.feedOperations().postLink("Here's a link", new FacebookLink("http://spring.io", "Spring.io", "Spring", "The Spring Framework website")));
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.