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

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

Introduction

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

Prototype

public String getName() 

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.ja  v a 2  s.co 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);
}