Example usage for org.springframework.social.facebook.api FacebookLink getLink

List of usage examples for org.springframework.social.facebook.api FacebookLink getLink

Introduction

In this page you can find the example usage for org.springframework.social.facebook.api FacebookLink getLink.

Prototype

public String getLink() 

Source Link

Usage

From source file:org.springframework.social.facebook.api.impl.FeedTemplate.java

public String postLink(String ownerId, String message, FacebookLink link) {
    requireAuthorization();/*from  w w  w . j  a  va2  s . c o  m*/
    MultiValueMap<String, Object> map = new LinkedMultiValueMap<String, Object>();
    map.set("link", link.getLink());
    map.set("name", link.getName());
    map.set("caption", link.getCaption());
    map.set("description", link.getDescription());
    map.set("message", message);
    return graphApi.publish(ownerId, "feed", map);
}