skip to Main Content

Retrofit response code 405 with message "method not allowed here" – Plesk

I am using retrofit and I have a post request interface NetworkApi { @Headers("Content-Type: application/json") @POST("/") fun startLoginRequest(@Body loginModel : LoginModel) : Call<BaseResponseModel> class Factory { var retrofit = Retrofit.Builder() .baseUrl(BASE_URL) .addConverterFactory(GsonConverterFactory.create()) .build() companion object{ fun getApi (): NetworkApi {…

VIEW QUESTION

Facebook api – can't exchange token manually v2.7

I'm using Loopback and I'm trying to user auth for graph api without javascript sdk or passport I got the code successfully however I can't exchange it with access token I followed this guide https://developers.facebook.com/docs/facebook-login/manually-build-a-login-flow/#confirm my get request is https://graph.facebook.com/v2.7/dialog/oauth?code={xxxx}&client_secret={xxxx}&client_id={xxx}&redirect_uri={myURL}…

VIEW QUESTION

Facebook api – Account Kit: Error verifying the token in the 'access_token'

I'm trying to retrieve an access token for an authentication code. I'm using the following format: GET https://graph.accountkit.com/v1.0/access_token?grant_type=authorization_code&code=AUTH_CODE&access_token=AA|APP_ID|APP_SECRET where AUTH_CODE, APP_ID, and APP_SECRET are their respective values. Here is the python I use to assemble this URL: url = 'https://graph.accountkit.com/v1.0/access_token?grant_type=authorization_code&code='…

VIEW QUESTION
Back To Top
Search