Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

get_avatar_url for facebook provider is failing #2488

Open
fbadin-divnotes opened this issue Mar 14, 2020 · 2 comments
Open

get_avatar_url for facebook provider is failing #2488

fbadin-divnotes opened this issue Mar 14, 2020 · 2 comments

Comments

@fbadin-divnotes
Copy link

fbadin-divnotes commented Mar 14, 2020

When my app tries to load the following user avatar

https://graph.facebook.com/v2.12/10204958011707924/picture?type=square&height=600&width=600&return_ssl_resources=1

facebook responds with a json error

{
   "error": {
      "message": "An access token is required to request this resource.",
      "type": "OAuthException",
      "code": 104,
      "fbtrace_id": "ATYdkIr6TZC7wk94YPzEV8_"
   }
}

I tried to check it by validating the expired_at on social token, but looks like it behaves differently about the pictures. I have a case that even though the account is expired, the picture is still available (on google provider).

@derek-adair
Copy link

@pennersr config error it would seem... but I dont use this provider so... maybe?

@pennersr
Copy link
Owner

No, valid. Facebook FacebookAccount.get_avatar_url() generates that URL, and a long time ago, that would work, but these days FB requires an access token for that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants