Skip to content
This repository was archived by the owner on Jan 13, 2022. It is now read-only.
This repository was archived by the owner on Jan 13, 2022. It is now read-only.

Broken for large app Id values #532

@ghaugen

Description

@ghaugen

The SDK is broken in a few places for large App Ids that get formatted in exponential notation by PHP.

I've patched my version locally with the following fixes:

OAuth2Client.php line 138 and 288:
'client_id' => sprintf("%.0f", $this->app->getId()),

FacebookSignedRequestFromInputHelper.php line 160:

    $cookieName = sprintf('fbsr_%.0f', $this->app->getId());

    if (isset($_COOKIE[$cookieName])) {
        return $_COOKIE[$cookieName];
    }

Hopefully someone will pick this up and incorporate it in the code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions