Posting comment to FB page successful but sends OAuthException error - facebook-graph-api

I'm trying to pot a comment to a post on a FB page. The comment makes it to FB successfully, but I get an error as a response instead of the new comment ID.
Here's my request:
curl --data "message=testing" https://graph.facebook.com/PAGEID_POSTID/comments?access_token=ACCESS_TOKEN
And the error:
{"error":{"message":"An unexpected error has occurred. Please retry your request later.","type":"OAuthException","code":2}}
Am I doing something wrong or is this a bug?

Related

"oauth2: cannot fetch token: 401 Unauthorized" happens sometime in Google Workspace Directory API

I created the code which get the member's information by Google Workspace Directory API. This code is executed everyday, and sometime I fece the error which is "oauth2: cannot fetch token: 401 Unauthorized".
Bad thing is that this error is happend only 1-2 times per month, and I cannnot reproduce by myself. I mean, if I re-execute the code after facing this error, it works well.
I paste full error message below:
"failed to get the members by email, email ="***#***": Get "https://admin.googleapis.com/admin/directory/v1/groups/***": oauth2: cannot fetch token: 401 Unauthorized
Response: {
"error": "unauthorized_client",
"error_description": "Client is unauthorized to retrieve access tokens using this method, or client not authorized for any of the scopes requested."
}"
API is executed by using Service Account which has appropriate roles below:
https://www.googleapis.com/auth/admin.directory.user.readonly
https://www.googleapis.com/auth/admin.directory.group.member.readonly
https://www.googleapis.com/auth/admin.directory.group.readonly
Is it only better solution to use exponential back off?
Thank you in advance.

unexpected Instagram graph api

i decided to publish posts via api in Instagram so i got access token for it and it worked fine for couple hours but then when i try to publish a countiner i get this
<Response [500]>
{"error":{"message":"An unexpected error has occurred. Please retry your request later.","type":"OAuthException","is_transient":true,"code":2}}
my access token is valid because its work when i make container and i published two posts with this token in the past so its work but i don't know why i get this error on publishing posts

Could not get any response in postman for API post request

I am trying to do a post request in postman for jira Api testing. but keep getting could not get any response error. Please see pictures below. I have turn off SSL certificate as suggest one post here but still not able to get the response.

Forbidden (403) CSRF verification failed. Request aborted. Django Admin

I've been using the Django admin panel for my project the entire time and suddenly after I cleaned my cookies it just won't work again it keep sending me this error:
Forbidden (403) CSRF verification failed. Request aborted.
Help:
Reason given for failure:
CSRF token missing or incorrect.
I am answering this question from the very less information available.
When you delete your cookies, the session-key stored on your browser side will be deleted. This way any API calls made after that will result in 403 error. Just to make sure this is correct, you can open your incognito tab in google chrome and try the same request after logging in.

IPN delivery failed. HTTP error code 403: Forbidden

I am trying to test IPN. Working with django-paypal. What could be wrong.
The URL is working. No errors otherwise...
But when I test this, it says IPN delivery failed and error code is 403,
Same problem on my site. Turns out that when telneting the server, I get the following details concerning the 403:
Forbidden (403)
CSRF verification failed. Request aborted.
Hooray, the csrf validation works ;D Now i gotta figure out how to turn it off for this particular form. Hope this hint helps anyone encountering the 403 when using django-paypal.
Do you have your website password protected? It sounds like paypal is getting a 403 response from your webserver. Make sure paypal can get to your website without requiring basic auth or something like that.