laravel-linkedin icon indicating copy to clipboard operation
laravel-linkedin copied to clipboard

'submitted-url' and 'media-key' cannot be both empty

Open khajafairozsyedi opened this issue 7 years ago • 0 comments

I am getting the "'submitted-url' and 'media-key' cannot be both empty" error while sharing with image, below is my code.

$options = [ 'json'=>[ 'comment' => $Content, 'content' => [ 'submitted-url'=> $Url,
'submitted-image-url'=> $image_url ], 'visibility' => [ 'code' => 'anyone' ] ] ]; $result = LinkedIn::post('v1/people/~/shares', $options);

khajafairozsyedi avatar Jan 29 '18 09:01 khajafairozsyedi