Shade- / MyFacebook-Connect

A plugin to integrate Facebook with MyBB, letting users login and register through Facebook.
27 stars 24 forks source link

Issue with Facebook avatars #74

Open Eldenroot opened 5 years ago

Eldenroot commented 5 years ago

Your plugin adds automatically something like this into Avatar url https://graph.facebook.com/10213283714992916/picture?width=250&height=250

but it is not allowed to be used by MyBB and it gives me an error when I wanna edit any user registered via Facebook. It is not a valid image file, there is some kind of url verification. So I have to delete this url, save the user and then it is fine.

Shade- commented 5 years ago

Facebook returns that value for the avatar, which resolves to a valid image for browsers. Of course it doesn’t include the image extension, thus why MyBB fails to recognize it as an image.

Resolving the image through PHP to get the actual image url would be nice, but too slow. Therefore, as I value speed over this little caveat more, I won’t edit the plugin like this. What I can do is try to bypass MyBB’s extension check in the ACP. It’s not really top priority though so it won’t be out soon.

Eldenroot commented 5 years ago

It is quite annoying... all the time edit this URL field manually.