Facebook marketing API - GraphInsecureException - The cipher AES128-GCM-SHA256 is not supported for TLSv1.2.
We are using the Facebook business SDK in our application in order to pull the ad_accounts & ads info from Facebook.
Spring boot application: dependency:
<dependency>
<groupId>com.facebook.business.sdk</groupId>
<artifactId>facebook-java-business-sdk</artifactId>
<version>16.0.0</version>
</dependency>
In our application, we are trying to pull the AdAccounts using the graph APIs & getting below GraphInsecureException:
Error:
com.facebook.ads.sdk.APIException$FailedRequestException: {"error":{"message":"The cipher AES128-GCM-SHA256 is not supported for TLSv1.2.","type":"GraphInsecureException","code":8,"fbtrace_id":"Avl7lDpYwvbUQ-wo8jPQKAm"}}
API call:
Caused by: java.io.IOException: Server returned HTTP response code: 403 for URL: https://graph.facebook.com/v16.0/<business_id>/owned_ad_accounts?access_token=<access_token>&appsecret_proof=<secretproof>
Note: The fun fact is when we try this on our local machine, it's giving us correct results without error. The issue comes when we run the same piece of code on the dev/QA servers. Is it due to graph apis blocking requests from those servers or what could be the issue?