Skip to content Skip to sidebar Skip to footer

Error On Sharing The Content To LinkedIn

I have successfully integrated LinkedIn native application in my application using LinkedIn mobile SDK. I am able to login successfully with my application but the problem is with

Solution 1:

Finally I have figured out what i have missed. My code was

private static Scope buildScope() {
    return Scope.build(Scope.R_BASICPROFILE, Scope.R_EMAILADDRESS);
}

So changed to

private static Scope buildScope() {
    return Scope.build(Scope.R_BASICPROFILE, Scope.R_EMAILADDRESS, Scope.W_SHARE);
}

So now its working very fine !!


Solution 2:

When you initialize your LISessionManager, you pass it a set of OAuth scopes that you want it to use for the connection. In your sample code above, this happens via the buildScope() method that you did not include in your original question, so I can't really know for sure ... but I suspect that even though you have your LinkedIn app configured to request the w_share member permission, you are not doing the same in the buildScope() process, which will trump whatever values you set as defaults in your app's config.

Ensure your buildScope() method contains the static value for the w_share member permission, e.g.:

private static Scope buildScope() {
    return Scope.build(Scope.W_SHARE);
}

Post a Comment for "Error On Sharing The Content To LinkedIn"