get avatar from facebook graph

by hendra   Last Updated October 17, 2017 19:08 PM

I use this plugin to get fb connect

the problem is I need to show avatar from FB graph that stored on database. when I use this plugin this plugin can show the fb avatar perfectly. now I just need to create some coding that can call that avatar image.

when I use this: get_avatar is show misterius man avatar, not fb why, my question is sidebar-login plugin can show the fb gtaph avatar use same tag "get_avatar"

get_avatar( $this->user->ID, apply_filters( 'sidebar_login_widget_avatar_size', 38 ) )

this is confusing me, sorry please help

Note: i need show avatar in content page but I show that use custom template page with php code. thanks!

Tags : facebook avatar

Answers 1

I found the solution!

global $current_user;
echo get_avatar( $current_user->ID, 48 );
October 17, 2017 18:33 PM

Related Questions

Facebook profile pic used as avatar

Updated August 27, 2017 08:08 AM

Updated avatars on the top. Is it even possible?

Updated January 21, 2018 13:08 PM

get_avatar() returns image with margin-bottom

Updated August 08, 2017 11:08 AM