Topic-icon Brand the little Facebook "F" on the imported avatar

Active Subscriptions:

None
Hey Alex

I have seen a little Facebook/LinkedIn brand 'F" or "In" on avatars imported in some programs. I like that it shows others who have not yet joined that there is open adoption of the site by FB/In users, even if they don't know those particular people. Shows acceptance by the FB/In community. Is that possible for us to do? Is it a snippet of code I may add? Or does it already exist and I missed it?
File Attachment:

File Attachment:

Thanks in advance for your time and consideration,

Jerry
The topic has been locked.
Support Specialist
Our JLinked extension automatically adds the 'in' overlay on the images. That's actually a requirement by LinkedIn.

For JFBConnect, the process should be pretty simple. In the /components/com_jfbconnect/libraries/facebook.php file, around line 185, you'll see:
$fql = "SELECT pic_big FROM profile WHERE id = " . $fbUserId;
Change 'pic_big' to 'pic_big_with_logo', and the image should be returned with the FB overlay.

I haven't tested this, but according to the FB documentation, that's all that's necessary. If you make the change, please let us know how it goes. I added a tracker issue for us to investigate adding an option like this to a future release.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
11 years 11 months ago #22176 by jerjaz
Hey Alex

Thanks for the quick reply. I inserted the code you suggested, but do not see any change. I assume, if I sign out, then sign in again, it will pull my FB avatar afresh, and it should carry the "f" brand. It doesn't. Here is how my code looks now:

$fql = "SELECT pic_big_with_logo FROM profile WHERE id = " . $fbUserId;

I look forward to your next idea. Oh, I also flushed the cache.

Hmmm... I changed my FB picture/avatar (on Facebook), flushed the cache, signed out, signed in, and JomSocial carries the old image. I checked my prefs and "Import Avatar" is checked.
The topic has been locked.
Support Specialist
11 years 11 months ago #22183 by alzander
Jerry,
The last sentence was exactly what I was going to recommend.. change your picture on FB and make sure that works. That should definitely update it if you have the "Always Import Profile" and "Import Avatar" settings in JFBConnect set.

When you change the avatar on FB, sometimes it does take some time to show up on imports. Clearing cache in both Joomla and your browser is what I'd recommend. You can also try with a completely 'new' user to your site, and see how that goes.. or remove the JomSocial avatar from your account and re-login to see if that imports.

All just suggestions.. Not sure what will make it 'click', but if you figure anything out or still run into issues, just let me know!
Alex
The topic has been locked.
Active Subscriptions:

None
11 years 11 months ago #22189 by jerjaz
I deleted my JomSocial avatar so it just shows the generic image. Logged out, cleared the site and browser cache. Changed my Facebook picture, wrote a new Facebook status update. I logged back in and JFBConnect updated my status but not the image. I see that several other avatars from users also carry the generic image, so I may have missed when the disfunction began. Both always import the info and avatar have been checked from the beginning.
The topic has been locked.
Support Specialist
11 years 11 months ago #22274 by alzander
Jerry,
I just registered on your site and my JomSocial avatar came in blank. I looked at it in your Kunena forums.

I'll gladly look into it further for you, if you'd like. However, the admin credentials you sent by Private Message don't seem to be working for me. Can you verify and resend them? We'll help you get to the bottom of the problem... it's possible the change I had you do above isn't working, or something else is causing problems with saving avatars in general.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
11 years 11 months ago #22339 by jerjaz
Hey Alex
Sorry to take so long to reply. I tried to make a new password for the original account I had set up and I get this error:

Save failed with the following error: DateTime::__construct() [datetime.--construct]: Failed to parse time string (%2012-%01-%18) at position 0 (%): Unexpected character

I spent some hours disabling Admin Tools protections, checking various settings, all with no effect. I searched Google for answers...

I upgraded your new registration to superuser so you should have access. But now I feel there is a major issue which has nothing to do with SourceCoast. Hear the sound of me weeping... But aha! I know Joomla can have a fit over date formats and I looked at the date I tossed in for when your user was born. I changed it to a real date year month day, and was able to save the new password. I have dried my tears.
The topic has been locked.
Support Specialist
11 years 11 months ago #22360 by alzander
Whew Jerry. First off, glad you got the password stuff worked out. I logged in with my test account and then actually downgraded him to 'registered', so I just have the account you PM'd me as super admin. Feel free to downgrade that user as well (I can't remove my own Super Admin priveleges).

For the 'fb' icon, that turns out to be much, much more difficult than I imagined it to be. I did a lot of debugging on your site, and basically came to the conclusion that we'll have to look into it further. Facebook returns completely different information for the avatar with the logo, and JFBConnect just isn't setup to handle that. I thought it was going to respond similarly to how we were doing it before, but that's not the case.

We still do have the issue in our to-do list, and do plan on implementing the option to select the type of logo, but it's not something we'll be able to do immediately.

I have reset the avatar import to use the 'pic_big' and avatar importing looks to work (without the logo). Obviously test, and sorry for the troubles!

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
11 years 11 months ago #22362 by jerjaz
Hey Alex

Tested and displays my latest FB avatar!

No worries and thanks for all your work. We are not trying to make a product just work, we are pushing to make a great product better. Your generosity in solving challenges and exploring new territory is admirable. I am a very happy user and promote your service to my clients and friends.

The one little "f" you see on an avatar on my site came from a user who signed in through the JomSocial FB Connect service before I dropped that for your reliable implementation.

Be well,

Jerry
The topic has been locked.
Support Specialist
11 years 11 months ago #22386 by alzander
Glad to hear we got you full-circle back to the beginning! :D

As for our support, no problem. Almost all of our features come from user suggestions. We don't do 'everything' our users ask for, but if we think it's something others might like to use (like the fb icon on avatars), we have no problem investigating it so that we can make it a part of the next release. I do think this one will be in the next 'big' release, but that may take a few months to get out. It was definitely a bit trickier than we expected.

Anyways, best of luck with your site, and keep in touch with any other feedback you may have!
Alex
The topic has been locked.