I have already successfully implemented authorization of LinkedIn and Twitter Oauth 2.0 in my application with external libraries. But I have problems with Facebook. It appears to have a different stream of authority.
I need to have 3 endpoints to implement OAuth: token request URL, access token URL and token url authorization.
For LinkedIn and Twitter, I have them:
REQ_TOKEN_URL="https://api.linkedin.com/uas/oauth/requestToken"; ACCESS_TOKEN_URL="https://api.linkedin.com/uas/oauth/accessToken"; AUTHORIZE_TOKEN_URL="https://api.linkedin.com/uas/oauth/authorize"; REQ_TOKEN_URL="https://api.twitter.com/oauth/request_token"; ACCESS_TOKEN_URL="https://api.twitter.com/oauth/access_token"; AUTHORIZE_TOKEN_URL="https://api.twitter.com/oauth/authorize";
But for Facebook, instead of a request token, I have
OAUTH_FACEBOOK_DIALOG = "https://www.facebook.com/dialog/oauth";
And I'm not sure how equal it is. Probably not, since it works like it did with LinedIn and Twitter.
The documentation on Facebook suggests starting with redirecting the user to "https://www.facebook.com/dialog/oauth", but first in classic OAuth 2.0 I have to request a token from request_token_URL.
So the question is: is there a Facebook authorization stream, not OAuth 2.0, and I need to use a different approach?
source share