Facebook API 的 Java 封装请求处理组件 RestFB

码农软件 · 软件分类 · 网络工具包 · 2019-02-28 12:43:54

软件介绍

一款facebook获取及数据处理的开源组件。

比较spring的social组件优点是没有太多的封装,缺点是支持facebook,spring的是啥都支持。

示例代码:

// Searching is just a special case of fetching Connections -
// all you have to do is pass along a few extra parameters.

Connection<Post> publicSearch =
  facebookClient
.fetchConnection("search", Post.class,
   
Parameter.with("q", "watermelon"), Parameter.with("type", "post"));

Connection<User> targetedSearch =
  facebookClient
.fetchConnection("me/home", User.class,
   
Parameter.with("q", "Mark"), Parameter.with("type", "user"));

out.println("Public search: " + publicSearch.getData().get(0).getMessage());
out.println("Posts on my wall by friends named Mark: " + targetedSearch.getData().size());

本文地址:https://codercto.com/soft/d/315.html

Is Parallel Programming Hard, And, If So, What Can You Do About

Is Parallel Programming Hard, And, If So, What Can You Do About

Paul E. McKenney

The purpose of this book is to help you understand how to program shared-memory parallel machines without risking your sanity.1 By describing the algorithms and designs that have worked well in the pa......一起来看看 《Is Parallel Programming Hard, And, If So, What Can You Do About 》 这本书的介绍吧!

URL 编码/解码
URL 编码/解码

URL 编码/解码

MD5 加密
MD5 加密

MD5 加密工具

SHA 加密
SHA 加密

SHA 加密工具