Apache camel 如何使用camel和facebook4j编写正确的URI
我正在使用ApacheCamel和facebook组件。当我使用字符串时Apache camel 如何使用camel和facebook4j编写正确的URI,apache-camel,jbossfuse,facebook4j,Apache Camel,Jbossfuse,Facebook4j,我正在使用ApacheCamel和facebook组件。当我使用字符串时 <from uri="facebook://me?oAuthAppId={{oAuthAppId}}&oAuthAppSecret={{oAuthAppSecret}}&oAuthAccessToken={{oAuthAccessToken}}"/> 现在我想得到我所有的“喜欢”。根据facebook api,我应该这样写:me?fields=likes。所以我尝试了这个uri
<from uri="facebook://me?oAuthAppId={{oAuthAppId}}&oAuthAppSecret={{oAuthAppSecret}}&oAuthAccessToken={{oAuthAccessToken}}"/>
现在我想得到我所有的“喜欢”。根据facebook api,我应该这样写:me?fields=likes
。所以我尝试了这个uri
<from uri="facebook://me?fields=likes&oAuthAppId={{oAuthAppId}}&oAuthAppSecret={{oAuthAppSecret}}&oAuthAccessToken={{oAuthAccessToken}}"/>
但它不起作用。我应该如何编写此uri以获得所有喜欢的内容?
提前感谢您可以使用链接到
userLikes
端点的getUserLikes
方法:
facebook://userLikes?oAuthAppId={{oAuthAppId}}&oAuthAppSecret={{oAuthAppSecret}}&oAuthAccessToken={{oAuthAccessToken}}
您可以使用可选的
userId
参数。您可以使用链接到userLikes
端点的getUserLikes
方法:
facebook://userLikes?oAuthAppId={{oAuthAppId}}&oAuthAppSecret={{oAuthAppSecret}}&oAuthAccessToken={{oAuthAccessToken}}
你可以使用一个可选的
userId
参数。为什么它只得到前8个喜欢?我不知道。API使用页面,尝试配置读取
,以指定要拥有的元素数。camelfacebook
组件只是facebook4j的包装。你应该喜欢这个文档或者尝试使用facebook api。为什么它只得到前8个喜欢?我不知道。API使用页面,尝试配置读取
,以指定要拥有的元素数。camelfacebook
组件只是facebook4j的包装。您应该喜欢此文档或尝试使用facebook api。