facebook-android-sdk icon indicating copy to clipboard operation
facebook-android-sdk copied to clipboard

Graph Api doesn't work on Android 4.4.4 (kitkat)

Open Kurnosov opened this issue 2 years ago • 1 comments

Checklist before submitting a bug report

Java version

1.8

Android version

API 19, KitKat

Android SDK version

16.0.0

Installation platform & version

Gradle

Package

Login

Goals

GraphRequest request = new GraphRequest(AccessToken.getCurrentAccessToken(), graphPath, parameters, HttpMethod.GET, cb);

Expected results

should work correctly as FB SDK 16.0.0 has minSdkVersion = 15 object Config { const val minSdk = 15 const val compileSdk = 31 const val targetSdk = 31 }

Actual results

failed as KitKat doesn't support TLS 1.2 with next error:

E/com.facebook.GraphResponse(25378): {HttpStatus: 403, errorCode: 8, subErrorCode: -1, errorType: GraphInsecureException, errorMessage: TLS versions older than v1.2 are not supported.}

Steps to reproduce

calling any GraphRequest i.e. "me", "profile"

Code samples & details

// INSERT YOUR CODE HERE

E/com.facebook.GraphResponse(25378): {HttpStatus: 403, errorCode: 8, subErrorCode: -1, errorType: GraphInsecureException, errorMessage: TLS versions older than v1.2 are not supported.}

Kurnosov avatar Feb 23 '23 07:02 Kurnosov

@Kurnosov did you get any resolution on this bug?

we are also facing a similar issue. In our application, we are trying to pull the adAccounts using the graph APIs & getting below GraphInsecureException:

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"}}

The fun fact is when we try this in our local machine, its giving us the results. 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?

@facebook-github-bot

pavakalyankillari avatar Mar 09 '23 09:03 pavakalyankillari