heiseonline / shariff-backend-php

👮 PHP backend for Shariff. Shariff enables website users to share their favorite content without compromising their privacy.
http://ct.de/-2467514
134 stars 44 forks source link

Wrong Facebook informations are crashing the whole app #125

Closed ahoiroman closed 6 years ago

ahoiroman commented 7 years ago

Hello,

I I do something like

array:4 [▼
  "cache" => array:2 [▼
    "ttl" => 0
    "cacheDir" => "/home/web2/html/site/tmp/cache"
  ]
  "domains" => array:1 [▼
    0 => "example.org"
  ]
  "services" => array:7 [▼
    0 => "Facebook"
    1 => "GooglePlus"
    2 => "LinkedIn"
    3 => "Pinterest"
    4 => "Xing"
    5 => "AddThis"
    6 => "Flattr"
  ]
  "Facebook" => array:2 [▼
    "app_id" => "1234567890"
    "secret" => "terces"
  ]
]

And let this return this way:

$shariff = new Backend( $configuration );
        $counts  = $shariff->get( $ref ); //site's url

        return $counts;

The return is always [ ]

If I exclude Facebook the return is:

{"googleplus":1,"linkedin":0,"pinterest":0,"xing":0,"addthis":0,"flattr":0} So it seems that the wrong FB App information are crashing the whole thing?

liayn commented 6 years ago

Should be fixed with d607c7ccf67e35ffe62d4903b449e71d8048731c

compeak commented 6 years ago

Release 7.1.1 contains a fix for this problem.