WioMedia / linkedin-j

Automatically exported from code.google.com/p/linkedin-j
0 stars 0 forks source link

postShare() causes "submitted-url is missing" error when not submitting URL #108

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I'm trying to use the "Share API" to post updates to LinkedIn using linkedin-j 
with the 

NetworkUpdatesApiClient.postShare(java.lang.String commentText, 
java.lang.String title, java.lang.String description, java.lang.String url, 
java.lang.String imageUrl, VisibilityType visibility)  

method as follows:

postShare("This is an update", null, null, null, null, VisibilityType.ANYONE);

and I'm getting the error:

com.google.code.linkedinapi.client.LinkedInApiClientException: Required share 
content 'submitted-url' is missing

But, I'm trying to send just a text update with no URL or title.

I tried setting the title and the url fields and then it posted to LinkedIn, 
but I want to post a text-only update.

I'm not 100% sure this is a bug, but if not, I'd love to know what I'm doing 
wrong.

Original issue reported on code.google.com by jjdemp...@gmail.com on 30 May 2012 at 3:46

GoogleCodeExporter commented 9 years ago
I am also facing this same issue. Please somebody help me to fix it. 

Original comment by rijes...@gmail.com on 26 Jun 2012 at 2:24

GoogleCodeExporter commented 9 years ago
Same here. 
It happens when I updated the following statement ....
            EnumSet<GroupMembershipField> es = EnumSet.of(GroupMembershipField.SHOW_GROUP_LOGO_IN_PROFILE, GroupMembershipField.ALLOW_MESSAGES_FROM_MEMBERS, GroupMembershipField.MEMBERSHIP_STATE, GroupMembershipField.POSTS, GroupMembershipField.GROUP_ID, GroupMembershipField.GROUP_NAME);

to add fields other than GroupMembershipField.GROUP_ID, 
GroupMembershipField.GROUP_NAME.

One of the newly requested field is raising this exception.

Original comment by Rajan...@gmail.com on 2 Jul 2012 at 11:41

GoogleCodeExporter commented 9 years ago
Is there any chance this will be fixed in the next release?  This is keeping us 
from switching to the ShareAPI which means our posts are limited to 140 
characters.

Original comment by jjdemp...@gmail.com on 10 Jul 2012 at 4:54