2017-03-13 29 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

我不認爲我們可以直接給他們作爲字符串。將其轉換爲日期時間。我想,那會做到的。

相關問題