heiseonline / shariff-backend-php

👮 PHP backend for Shariff. Shariff enables website users to share their favorite content without compromising their privacy.

Home Page:http://ct.de/-2467514

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Wrong Facebook informations are crashing the whole app

ahoiroman opened this issue · comments

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?

Should be fixed with d607c7c

Release 7.1.1 contains a fix for this problem.