0
  1. https://www.facebook.com/v18.0/dialog/oauth?client_id={client_id}&redirect_uri={redirect_uri_uri}&scope=public_profile,pages_manage_posts

I got the code from this request.

  1. Now Putting that code in

https://graph.facebook.com/v18.0/oauth/access_token?client_id={client_id}&redirect_uri={redirect_uri}&client_secret={secret_id}&code=

I got the access_token

  1. https://graph.facebook.com/me?fields=id,name&access_token={access_token}

I got the user_id and name

but when I post the request with some file for upload in https://graph.facebook.com/v18.0/{user_id}/photos?access_token=

It shows "error": { "message": "(#200) This endpoint is deprecated since the required permission publish_actions is deprecated", "type": "OAuthException", "code": 200, "fbtrace_id": "A-sDKV8AZcq0hyONFkzq53C" }

2
  • Where is the code that generates the error?
    – Jason
    Sep 5 at 8:18
  • I think that the redirect url should be the url of your application that Facebook will use when Facebook has validated the login. Sep 6 at 14:41

0

Your Answer

Reminder: Answers generated by Artificial Intelligence tools are not allowed on Stack Overflow. Learn more

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Browse other questions tagged or ask your own question.