problem is solved by taking SHORT_ACCESS_TOKEN directly from Graph API Explorer
Long-time access token for standalone application
-
03-08-2022 - |
質問
I need to make standalone app (using facebook sdk for .net) that posts photos to group album and wall. I want to get long time access token. I tried it in 2 steps: 1. get short access token with such request
https://graph.facebook.com/oauth/access_token?client_id=APP_ID&client_secret=APP_SECRET&grant_type=client_credentials
it returns me token like this:
access_token=APP_ID|SHORT_ACCESS_TOKEN
get long time token using
in this step i get response
{
"error": {
"message": "An unexpected error has occurred. Please retry your request later.",
"type": "OAuthException",
"code": 2
}
}
How can I fix it?
解決
所属していません StackOverflow