Apache camel 如何使用camel和facebook4j编写正确的URI

Apache camel 如何使用camel和facebook4j编写正确的URI,apache-camel,jbossfuse,facebook4j,Apache Camel,Jbossfuse,Facebook4j,我正在使用ApacheCamel和facebook组件。当我使用字符串时 <from uri="facebook://me?oAuthAppId={{oAuthAppId}}&amp;oAuthAppSecret={{oAuthAppSecret}}&amp;oAuthAccessToken={{oAuthAccessToken}}"/> 现在我想得到我所有的“喜欢”。根据facebook api,我应该这样写:me?fields=likes。所以我尝试了这个uri

我正在使用ApacheCamel和facebook组件。当我使用字符串时

<from uri="facebook://me?oAuthAppId={{oAuthAppId}}&amp;oAuthAppSecret={{oAuthAppSecret}}&amp;oAuthAccessToken={{oAuthAccessToken}}"/>
现在我想得到我所有的“喜欢”。根据facebook api,我应该这样写:
me?fields=likes
。所以我尝试了这个uri

<from uri="facebook://me?fields=likes&amp;oAuthAppId={{oAuthAppId}}&amp;oAuthAppSecret={{oAuthAppSecret}}&amp;oAuthAccessToken={{oAuthAccessToken}}"/>

但它不起作用。我应该如何编写此uri以获得所有喜欢的内容?
提前感谢

您可以使用链接到
userLikes
端点的
getUserLikes
方法:

facebook://userLikes?oAuthAppId={{oAuthAppId}}&amp;oAuthAppSecret={{oAuthAppSecret}}&amp;oAuthAccessToken={{oAuthAccessToken}}

您可以使用可选的
userId
参数。

您可以使用链接到
userLikes
端点的
getUserLikes
方法:

facebook://userLikes?oAuthAppId={{oAuthAppId}}&amp;oAuthAppSecret={{oAuthAppSecret}}&amp;oAuthAccessToken={{oAuthAccessToken}}

你可以使用一个可选的
userId
参数。

为什么它只得到前8个喜欢?我不知道。API使用页面,尝试配置
读取
,以指定要拥有的元素数。camel
facebook
组件只是facebook4j的包装。你应该喜欢这个文档或者尝试使用facebook api。为什么它只得到前8个喜欢?我不知道。API使用页面,尝试配置
读取
,以指定要拥有的元素数。camel
facebook
组件只是facebook4j的包装。您应该喜欢此文档或尝试使用facebook api。