質問

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
  1. get long time token using

    https://graph.facebook.com/oauth/access_token?client_id=APP_ID&client_secret=APP_SECRET&grant_type=fb_exchange_token&fb_exchange_token=SHORT_ACCESS_TOKEN

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?

役に立ちましたか?

解決

problem is solved by taking SHORT_ACCESS_TOKEN directly from Graph API Explorer

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top