Topic-icon Avatar import from Facebook

Active Subscriptions:

None
10 years 3 months ago - 10 years 3 months ago #57142 by [email protected]
I see this has been discussed before, but I have not seen a resolution.
Situation:
1. We have Joomla 3.x, Jomsocial, JFBConnect. All current versions.
2. When we enable Facebook connect with JUST Jomsocial, avatars, profile properties,etc are imported correctly and work.
3. When we enable JFBConnect, facebook profile properties are all imported successfully ,but the avatar and background do NOT.
4. We have checked the /tmp and /images folders. These all work as expected.
5. When we clean out the /tmp directory manually, login with FB, we can see JFBConnect create the fb_*.jpb file in /tmp. Issue is it is Zero bytes.
6. We are running on Windows platform.
7. We have created two sites on two servers. We can walk through both setups and get the same result. JFBConnect creates zero bytes when enabled.

Please advise.

Additional Details: This is in the PHP LOG:
[19-Feb-2016 17:26:13 America/New_York] PHP Notice: Undefined offset: 1 in C:\inetpub\wwwroot\components\com_jfbconnect\libraries\utilities.php on line 280
[19-Feb-2016 17:26:13 America/New_York] PHP Notice: Undefined index: message in C:\inetpub\wwwroot\components\com_jfbconnect\libraries\profile\facebook.php on line 204
[19-Feb-2016 17:26:13 America/New_York] PHP Notice: Undefined offset: 1 in C:\inetpub\wwwroot\components\com_jfbconnect\libraries\utilities.php on line 280
[19-Feb-2016 17:26:13 America/New_York] PHP Notice: getimagesize(): Read error! in C:\inetpub\wwwroot\libraries\sourcecoast\plugins\socialprofile.php on line 550
[19-Feb-2016 17:26:13 America/New_York] PHP Warning: imagecreatetruecolor(): Invalid image dimensions in C:\inetpub\wwwroot\libraries\sourcecoast\plugins\socialprofile.php on line 555
[19-Feb-2016 17:26:13 America/New_York] PHP Warning: imagecreatefromstring(): Empty string or invalid image in C:\inetpub\wwwroot\libraries\sourcecoast\plugins\socialprofile.php on line 556
[19-Feb-2016 17:26:13 America/New_York] PHP Warning: imagecopyresampled() expects parameter 1 to be resource, boolean given in C:\inetpub\wwwroot\libraries\sourcecoast\plugins\socialprofile.php on line 557
[19-Feb-2016 17:26:13 America/New_York] PHP Warning: imagejpeg() expects parameter 1 to be resource, boolean given in C:\inetpub\wwwroot\libraries\sourcecoast\plugins\socialprofile.php on line 558
Last edit: 10 years 3 months ago by [email protected].
The topic has been locked.
Support Specialist
10 years 3 months ago #57151 by alzander
If you're seeing a file, but it's 0-bytes, it means there was some issue fetching the data from Facebook. JFBConnect uses cURL to fetch the remote content and download it. Can you provide us admin credentials so you can see your PHP information for your site or take a picture of the curl configuration section and the disable_functions line in the PHP configuration so we can understand more about your setup?

We have run into issues with Windows in the past, but haven't heard of issues downloading avatars recently with updates we've incorporated into JFBConnect since.

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

None
10 years 3 months ago #57185 by [email protected]
I attached PHP details from the server.

Details.zip
The topic has been locked.
Support Specialist
10 years 3 months ago #57191 by alzander
Everything in your PHP configuration looks correct. From here, we'd need FTP access to your site so that we can make some modifications to our files to determine where things are going south. It's likely a Windows-specific issue, but not one we've seen before as we do testing on Windows and have many users with that setup.

Please Private Message us FTP credentials by clicking the mail icon under my name to the left.

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

None
10 years 3 months ago #57212 by [email protected]
Keep me posted. What time zone are you in.
The topic has been locked.
Support Specialist
10 years 3 months ago #57215 by alzander
Thanks for the credentials. I'm able to see your filesystem, but I can't write any changes. When I do, I get:

Command: PORT 192,168,10,102,241,239
Response: 200 PORT command successful.
Command: STOR socialprofile.php
Response: 550 Access is denied.

Can you help make sure I have write permissions as well? Additionally, we'll need to create and delete accounts from the site (so that we can test the code changes and narrow things down). Can you send Super Admin credentials via FTP as well?

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

None
10 years 3 months ago #57227 by [email protected]
How is it going. We provided everything you needed. Any updates on this?
The topic has been locked.
Support Specialist
10 years 3 months ago #57231 by alzander
Alright.. just tried again. I implemented a code fix that works for Google when automatic registration is enabled. The issue was that the SSL verification wasn't working when connecting to the social networks and that was causing the avatar to fail to import, even if the "Disable SSL Verification" setting was enabled. We'll be including this update in our next release.

I couldn't test Facebook because your app is in Development Mode, which won't let me login.

I can only try with Automatic Registration enabled. Otherwise, when I'm directed to the login form, the Captcha question shows the below message and I can't submit the form:

ERROR for site owner:
Invalid domain for site key
reCAPTCHA


Please continue to test though and let us know if you run into any other issues.

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

None
10 years 3 months ago #57238 by [email protected]
So, did you make modifications to the system? Which files were modified?
I will adjust the reCaptcha and retest.
The topic has been locked.
Support Specialist
10 years 3 months ago #57242 by alzander
Yes, we did. In the /components/com_jfbconnect/libraries/utilities.php file, around line 248, we added the check for your Disable SSL Verification setting and applied it when downloading content from other sites.

Let us know how your testing goes, but hopefully things are all cleared up from here.

Alex
The topic has been locked.