1

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

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

脸书回我

{
  "name": "Some Myname",
  "id": "my id"
}

现在我想得到我所有的“喜欢”。根据 facebook api 我应该写这样的东西:me?fields=likes. 所以我试过这个uri

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

但它不起作用。我应该如何写这个 uri 来获得我的所有喜欢?提前致谢

4

1 回答 1

0

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

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

您可以使用可选userId参数。

于 2016-03-13T15:59:47.723 回答