facebook / facebook-java-business-sdk

Java SDK for Meta Marketing APIs
https://developers.facebook.com/docs/business-sdk
Other
393 stars 324 forks source link

lead fetch fail #450

Open Yxiaohuihui opened 7 months ago

Yxiaohuihui commented 7 months ago

When I upgrade facebook-java-business-sdk to 18.0.4, and I call this, it return like this. APIContext context = new APIContext(appToken, appSecret).enableDebug(true); com.facebook.ads.sdk.Lead lead = new com.facebook.ads.sdk.Lead(facebookLeadId, context); lead.fetch();

{"error":{"message":"(#3) Application does not have the capability to make this API call.","type":"OAuthException","code":3,"fbtrace_id":"A4-FYMw-yDsNkVat2ZDyI_Q"}}

But if I remove post_submission_check_result field in class Lead, it will return the correct result. What the problem?