(React Native)如何在LinkedIn上与特定人分享消息 [英] (React Native) How to share a message to a particular person on LinkedIn
问题描述
我正在开发一个本机应用程序,需要与 LinkedIn 上的特定人/朋友/联系人共享消息.
I'm working on a react-native app in which I need to share a message with a particular person/friend/connection on LinkedIn.
我尝试了 react-native的共享组件,但是当我选择 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).
例如 Facebook Messenger 之类的其他应用,当我选择Share with Messenger
时,它可以将共享消息发送给我选择的用户.
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.
推荐答案
对我来说,您有3种可能:
For me you have 3 possibilities:
- 要找到正确的Linkedin App回调网址(例如:
linkedin://profile?id=[id]
),请在 react-native-share 依赖项可以帮助您. - 要实现原生模块并与 Linkedin SDK .
- 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.
这篇关于(React Native)如何在LinkedIn上与特定人分享消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!