code: function(p, callback) {
  					var data = {
  						visibility: {
  							code: 'anyone'
  						}
  					};
  
  					if (p.data.id) {
  
  						data.attribution = {
  							share: {
  								id: p.data.id
  							}
  						};
  
  					}
  					else {
  						data.comment = p.data.message;
  						if (p.data.picture && p.data.link) {
  							data.content = {
  								'submitted-url': p.data.link,
  								'submitted-image-url': p.data.picture
  							};
  						}
  					}
  
  					p.data = JSON.stringify(data);
  
  					callback('people/~/shares?format=json');
  				}
docs: See: https://developer.linkedin.com/documents/api-requests-json