parent
091a9a5bde
commit
055674d587
classes
|
@ -66,7 +66,7 @@ class FacebookService extends SocialService {
|
|||
$href = $this->saveUrl(data_get($attachment, 'media.image.src')); break;
|
||||
case 'share':
|
||||
case 'event':
|
||||
$fid = data_get($attachment, '0.target.id', data_get($attachment, 'target.id', str_random(32)));
|
||||
$fid = data_get($attachment, '0.target.id', data_get($attachment, 'target.id', substr(base64_encode(json_encode($attachment)), 0, 20)));
|
||||
if (!data_get($attachment, 'media.image.src')) {
|
||||
continue 2;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue