• Resolved ang3lhta

    (@ang3lhta)


    Hey..
    I purchase your premium plugin yesterday for only one thing: the avatar picture from the facebook profile..
    now, i see the avatar BUT in very bad resolution! i tried the default theme and still the avatar in bad resolution..
    i also deactivated all my plugins that is related to avatars:
    WP User Avatar, Author Avatars List, Vertical scroll recent registered user.

    and still the problem remains the same..
    inthe user edit profile page, i do not see that he grab any avatar.

    https://www.ads-software.com/plugins/wp-fb-autoconnect/

Viewing 15 replies - 1 through 15 (of 16 total)
  • Hi @ang3ihta,

    I’ve had the same problem for a couple years now, and if I’m correct, it has to do with the API call between WP-FB-AutoConnect and Facebook.

    WP-FB-AutoConnect retrieves a low resolution version of the person’s Facebook Avatar and also doesn’t allow you to set crop dimensions.

    Justin mentioned that this feature may come out in a future release, maybe?

    Alex

    Thread Starter ang3lhta

    (@ang3lhta)

    Well, i had upgraded for premium and still the same the extra 2 features that he’s added:

    Cache Facebook avatars locally (thumbnail)
    Cache Facebook avatars locally (fullsize)

    but it’s not helping at all..

    The problem’s not in the caching of the images, but in the resolution of the image retrieved from Facebook.

    Thumbnails are 50px by 50px.
    Full size are around 180px by 180px, or close to.

    If you’re using the avatar at any size larger than that, they’ll get pixelated.

    Ideally, we’d be able to retrieve larger (custom) resolutions from Facebook instead.

    Plugin Author justin_k

    (@justin_k)

    Hey ang3lhta,

    As Alex mentioned, the plugin currently fetches avatars in 2 sizes – 50×50 & “full” (as designated by Facebook, which I guess is around 180×180). While Facebook’s “full-size” has been large enough for the vast majority of users, it is still on my ToDo list to support custom sizes as well. I just haven’t had time to do much non-support-related work on this project for quite awhile (i.e. besides chasing my tail to keep up with Facebook’s API breakages, handling user support requests, etc). But rest assured, it isn’t forgotten ??

    How large of an image were you needing?

    Plugin Author justin_k

    (@justin_k)

    Closing due to non-response.

    Hi @justin_k,

    Thanks for the reply and sorry for the late response (and also happy new year).

    Sounds reasonable. We all appreciate the time you’ve put into this plugin.

    For my site, I need an avatar resolution of 315 x 315 pixels. I don’t have much programming/API experience or I’d lend a hand in adding this feature to the plugin.

    Anyway, look forward to having this feature in the future if you ever get a moment ??

    Alex

    Plugin Author justin_k

    (@justin_k)

    If you’d like to try to hack your own solution in the interim, it shouldn’t be too hard. A lot of my development time actually goes towards making the admin panel/options/documentation/testing across versions/etc, but if you just want to hardcode your own fixed resolution & test it in your own environment, it should be an easy change.

    See _process_login.php, line 77. Try changing the graph url from https://graph.facebook.com/me/picture?type=large&redirect=false&access_token=$access_token to https://graph.facebook.com/me/picture?width=315&height=315&redirect=false&access_token=$access_token. This will only apply to users who login after the change, not those who’ve already logged in – also, resolution isn’t guaranteed (see their docs at https://developers.facebook.com/docs/graph-api/reference/v2.2/user/picture), so a robust solution should still scale the image with CSS or some image-processing library (Facebook API call will also return the actual size supplied). That should be much closer to what u want tho.

    Great – thanks for pointing me in the right direction. I’ll try to get this working as soon as I get the chance and report back to the post on how it goes.

    (Right, there needs to be a backup fix incase 315×315 resolution isn’t available.)

    Plugin Author justin_k

    (@justin_k)

    Hey again,

    I just posted an updated premium addon (v35) that adds the ability to specify your own resolution for Facebook avatars. You can download it from the eStore, same place as before (Purchase History page) ??

    J~

    Great – thanks for following up on this ??

    Are you able to crop both square and custom dimensions?
    Does it perform the cropping from (0,0)?

    Plugin Author justin_k

    (@justin_k)

    No, it only requests dimensions from Facebook (i.e. the solution mentioned above – please have a look at the documentation next to that feature). I haven’t done any custom post-processing in this version.

    Re: its ability to crop square vs custom, that depends on how closely Facebook respects the requested dimensions. This can always be handled in CSS tho, since you can now get sufficiently hi-res photo so that they doesn’t look crappy in your theme (i.e. for bigger avatars)

    thanks. I’ll take a look at the docs…

    I download the version from purchase history just now, and replaced it…

    But I don’t see any difference. It’s still really pixelated

    Plugin Author justin_k

    (@justin_k)

    The plugin will fetch/cache whatever resolution you specify in the options; however, if your theme does not call the WP avatar function properly (i.e. specifies too low of a resolution), or if your CSS is not written correctly, it still won’t look good. This is beyond the control of my plugin.

    You may verify that the size of the jpgs getting cached to your server are as expected. If they aren’t, there may be an issue with the plugin. If they are, then the problem is probably with your theme.

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘AVATAR is not good quality’ is closed to new replies.