Skip to content
This repository was archived by the owner on Sep 5, 2018. It is now read-only.
This repository was archived by the owner on Sep 5, 2018. It is now read-only.

Facebook profile picture issue #12

@skrosoft

Description

@skrosoft

Hi,

Facebook large profile picture doesnt work.

The CURL to graph.facebook.com/XXX/picture?type=large save the file to ngconnect/facebook_XXX but WITHOUT extension.

EzPublish doent accept to use this following code with a filename without extension:

$dataMap['image']->fromString( $fileName );
$dataMap['image']->store();

I solved that by using these following lines of code before the CURL request:

$pathInfo = pathinfo($authResult['picture']);
if (!isset($pathInfo['extension'])) $fileName .= '.jpg';

Any opinion? Is this fix is OK, the '.jpg' string could be implemented in the ngconnect.ini file for each Login Method.

Atte,

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions