facebook / facebook-java-business-sdk

Java SDK for Meta Marketing APIs

Home Page:https://developers.facebook.com/docs/business-sdk

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

lead fetch fail

Yxiaohuihui opened this issue · comments

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?