Topic-icon Issue with import FB pic

Active Subscriptions:

None
11 years 5 months ago #27797 by sougatab
Hi Alex,

Recently we had some issue with FB profile pic import but that is working fine now.

Is it possible to re-import/link the profile photo with the user's avatar? Currently some users have the default avatar though they had successfully logged in using JFBConnect. We can see the profile photos in JFBConnect -> User Map.

Thanks
The topic has been locked.
Support Specialist
11 years 5 months ago #27803 by alzander
Replied by alzander on topic Issue with import FB pic
If you have the "Always Import Profile" setting enabled in JFBConnect, it will import it when they login. There's no way to have JFBConnect go and re-fetch everyone's Facebook avatar as we'd need to determine if the avatar was the default or not, and then decide whether to overwrite whatever they have set.

So, for now, the best option is to leave the Always Import Profile setting enabled and as users log back into the site their avatars will be re-imported.

Hope that helps,
Alex
The topic has been locked.
Active Subscriptions:

None
11 years 4 months ago #27816 by sougatab
Replied by sougatab on topic Issue with import FB pic
Thanks Alex for the response.

We cannot use "Always Import Profile" because many users have customized their profile on our platform. When we use that feature, their customization of profile gets overwritten.

Is it possible to only import profile photo each time an user logs in using Facebook? The other data should not get imported.
The topic has been locked.
Support Specialist
11 years 4 months ago #27844 by alzander
Replied by alzander on topic Issue with import FB pic
Sougatab,
There's no option to let you just import the avatar during login. However, there's a pretty easy modification you can try that will force the user's avatar to be updated. Please understand that it will overwrite the user's avatar even if they already have one set.

If you'd like to try it, please edit the /plugins/jfbcprofiles/jomsocial/jomsocial.php file. Around line 63, you'll see the jfbcProfilesOnLogin function. In that function at the very bottom, add the line below right before the closing '}' mark:
$this->migrateSocialAvatarToProfile($joomlaId, $fbUserId);
Test, a lot, and make sure it works how you expect.

Hope that helps, but if not, let us know!

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

None
11 years 4 months ago #27858 by sougatab
Replied by sougatab on topic Issue with import FB pic
Thanks Alex.

Is it possible for you to include an option/button on the front end for users to manually import FB profile photo (if they want any time after registration)? It's something that you may consider for a future release.
The topic has been locked.
Support Specialist
11 years 4 months ago #27909 by alzander
Replied by alzander on topic Issue with import FB pic
Sougatab,
We already have a task on our to-do list to add the option for users to re-fetch their profile information. At first, this will likely re-pull all information (fields and avatar) that you have configured in your admin area, but we'll try to keep it in mind to let the user select what is pulled in.

Right now, there's no such option like that, so my suggestion above is still what I'd recommend if you want to update everyone's avatar with their Facebook avatar as they login.

Hope that helps, and thanks for your feedback!
Alex
The topic has been locked.
Active Subscriptions:

None
11 years 4 months ago #27913 by sougatab
Replied by sougatab on topic Issue with import FB pic
Thanks Alex!
It'll be great if we can give an option to users on what data is pulled in.
The topic has been locked.
Support Specialist
11 years 4 months ago #27929 by alzander
Replied by alzander on topic Issue with import FB pic
It would be. That gets very complex very quickly though to do in a clean manner. Some sites import tons of information from Facebook, other's only import a field or 2. Letting the user choose or building JFBConnect in a way that works across thousands of sites makes it difficult to make a great system for letting the user select the profile fields to import.

It's something we'd love to do, and are always looking for ways to improve things, so hopefully we'll get it in there some day.

Thanks again for the feedback, and best of luck,
Alex
The topic has been locked.
Active Subscriptions:

None
11 years 4 months ago #27945 by sougatab
Replied by sougatab on topic Issue with import FB pic
Thanks Alex.

The new version that you have released needs to be updated manually (that's what it says in the Joomla backend).
Does it mean we need to download the required file, unzip it and manually upload it? Is there anything else?

It'll be great if you can just let me know the steps for updating the extension.
The topic has been locked.
Support Specialist
11 years 4 months ago #27950 by alzander
Replied by alzander on topic Issue with import FB pic
You can update it from the JFBConnect Overview page in the admin area or re-download the whole package from our site. The new release also adds Open Graph plugins, which are new, so you may want to download the whole package anyways so you can install the proper plugins.

Hope that helps,
Alex
The topic has been locked.