Jump to content

[IPS 4.3] Potential Bug at Sign In Page. Checkbox issue


SeNioR-

Recommended Posts

  • 2 weeks later...
  • 2 weeks later...
  • 3 weeks later...

 

@bfarber After the Facebook scandal, Facebook has changed a little bit in the API code so that the synchronization of photos and covers does not work.

missing-av.png.05563867a66047941c09589e4b5df826.png

monthly_2018_04/_rofilepic.b9ea5a303031b2aad5cf3ea0f2b8f2d3

 

I see that sync cover on IPS also don't working.

@claudiuhks -> cover -> https://dne4i5cb88590.cloudfront.net/invisionpower-com/monthly_2018_04/_overpic.b826d08e589cd25c487e7524aa760424

Now URl to covers and profile pics look like

https://lookaside.facebook.com/platform/coverpic/

https://lookaside.facebook.com/platform/profilepic/

An alternative in IPS 4.2.8 is to return a direct link in ProfileSync\Facebook.php

return \IPS\Http\Url::external( $response['data']['url'] );

 

Link to comment
Share on other sites

11 hours ago, SeNioR- said:

 

@bfarber After the Facebook scandal, Facebook has changed a little bit in the API code so that the synchronization of photos and covers does not work.

missing-av.png.05563867a66047941c09589e4b5df826.png


monthly_2018_04/_rofilepic.b9ea5a303031b2aad5cf3ea0f2b8f2d3

 

I see that sync cover on IPS also don't working.

@claudiuhks -> cover -> https://dne4i5cb88590.cloudfront.net/invisionpower-com/monthly_2018_04/_overpic.b826d08e589cd25c487e7524aa760424

Now URl to covers and profile pics look like

https://lookaside.facebook.com/platform/coverpic/

https://lookaside.facebook.com/platform/profilepic/

An alternative in IPS 4.2.8 is to return a direct link in ProfileSync\Facebook.php


return \IPS\Http\Url::external( $response['data']['url'] );

 

Is this something you're noticing locally, or did you notice broken photos here?

Link to comment
Share on other sites

30 minutes ago, bfarber said:

Is this something you're noticing locally, or did you notice broken photos here?

Broken profile pictures appear only on version IPS 4.2.8 and lower on my test live site. 

This error doesn't occur on Invision Community because it is 4.3

Link to comment
Share on other sites

8 minutes ago, SeNioR- said:

Broken profile pictures appear only on version IPS 4.2.8 and lower on my test live site. 

This error doesn't occur on Invision Community because it is 4.3

My solution for 4.2.8 and lower versions: 


$GetPhotoURL = \IPS\Http\Url::external( $response['data']['url'] );
$CreateNewAv = \IPS\Image::create( (string) \IPS\Http\Url::external( $GetPhotoURL )->request()->get() );
$CreatedAv = \IPS\File::create( 'core_Profile', 'imported-fb-photo-' . $this->member->member_id . '.jpg', (string) $CreateNewAv );
			
return $CreatedAv;

Before:


monthly_2018_04/_rofilepic.b9ea5a303031b2aad5cf3ea0f2b8f2d3

After:


uploads/monthly_2018_04/imported-fb-photo-43866.jpg.2db3321122c507cf229795cb91e63dca.jpg

 

We released a patch for 4.2.8 on March 28th

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...