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

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

Introduction

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

Prototype

public String getCaption() 

Source Link

Usage

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

public String postLink(String ownerId, String message, FacebookLink link) {
    requireAuthorization();/*  w w  w  . ja v  a 2 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);
}