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

getAvatar not returning photoUrl #2

Closed
XBlack97 opened this issue Dec 5, 2022 · 2 comments
Closed

getAvatar not returning photoUrl #2

XBlack97 opened this issue Dec 5, 2022 · 2 comments

Comments

@XBlack97
Copy link

XBlack97 commented Dec 5, 2022

The funtion val avatar = "${requireNotNull(currentUser.photoUrl)}access_token=$accessToken" doesn't return the currentUser PhotoUrl. I logged it to figure what it is printing and it's quite confusing

Output
https://graph.facebook.com/2320946994746820/pictureaccess_token=EAAJraXYVZCSsBAJ9aOCVyjIz2fZCEZCUXnklNoLI6AIVI6RdYJbmmT8L7pJuEfYCeS4773L11SeAXBv2ZCaOJZCEYZBqtYjZCiGu8XTj9xzffqF4HrQbgnCVS5ZAMXZCdT2fLu3p7ZC4SMg9DjGCVc2rLH0FlqkRcS5geFQOod7o1z0gKTLZBEZCxExuZACnwgpzaKajMvF7kNoqZA2jmu0SlUjDyDTAotsr3Goji782BbwJwD0pOs6vLg1rT4

i looked it up and this webpage displays
Screenshot 2022-12-05 at 3 42 34 PM

@alexstyl
Copy link
Owner

alexstyl commented Dec 6, 2022

Hi @XBlack97. It seems like you are missing a ? right after the picture part of the url.

It should be https://graph.facebook.com/2320946994746820/picture?access_token..., like you see here.

Let me know if that sorts out the issue

@XBlack97
Copy link
Author

XBlack97 commented Dec 6, 2022

Oh boy, can't believe how that get past me, thanks for the help...very much appreciated

@XBlack97 XBlack97 closed this as completed Dec 6, 2022
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

2 participants