问题
I'm working on a react-native app in which I need to share a message with a particular person/friend/connection on LinkedIn.
I tried react-native's Share component but when I select the LinkedIn app to share my message, it just post the message to my profile wall (and not sending it to a particular connection).
Other apps like Facebook Messenger for example, when I select Share with Messenger
it allows me to send the share message to the user(s) I select.
回答1:
For me you have 3 possibilities:
- To find the right Linkedin App callback url (ex:
linkedin://profile?id=[id]
), my answer on this question should help you. - To look if using the react-native-share dependency can help you.
- To implement and use a Native Module with the Linkedin SDK.
来源:https://stackoverflow.com/questions/53018637/react-native-how-to-share-a-message-to-a-particular-person-on-linkedin