2017-03-13 37 views
0

错误:com.restfb.exception.FacebookOAuthExceptioni尝试使用restfb API来获取页面的见解时

Received Facebook error response of type OAuthException: Invalid parameter (code 100, subcode 1504016)

代码:

FacebookClient facebookClient = new DefaultFacebookClient(accessToken, Version.VERSION_2_5); 
Connection<Insight> insights = facebookClient.fetchConnection("3954569608XXXX/insights", Insight.class,Parameter.with("since", "2016-08-01"),Parameter.with("until", "2017-03-10")); 

回答

0

我不认为我们可以直接给他们作为字符串。将其转换为日期时间。我想,那会做到的。

相关问题