[英]MissingManifestResourceException publishing to twitter from windows phone 8.1 app
[英]What is the Uri Scheme to open LinkedIn and Twitter App from an Windows Phone 8.1 App?
我正在開發 Windows Phone 8.1 應用程序。 我需要從我自己的應用程序中打開 LinkedIn 和 Twitter 應用程序(已安裝在手機中)中的個人資料。
要實現此功能,我知道我需要上述兩個應用程序的URI 方案。
通過使用以下代碼片段,我成功打開了 Facebook 應用程序:
public async void OpenFbProfile(string id)
{
Launcher.LaunchUriAsync(new Uri("fb:profile_id=" + id)); //worked fine
}
同樣,我也嘗試過,打開 LinkedIn 和 Twitter 應用程序,但沒有成功。
public async void OpenLinkedInProfile(string id)
{
Launcher.LaunchUriAsync(new Uri("LinkedIn:profile_id=" + id)); //not working
}
public async void OpenTwitterProfile(string id)
{
Launcher.LaunchUriAsync(new Uri("Twitter:profile_id=" + id)); //not working
}
那么,誰能告訴我這兩個應用程序的 URI Schemes 嗎?
在這兩個應用程序中,使用個人資料 ID 打開個人個人資料的 URI 是什么?
await Launcher.LaunchUriAsync(new Uri("Twitter:profile?username=@YOUR_TWITTER_USERNAME"));
雖然可以理解,但人們可能正在尋找快速答案。 它強烈建議人們研究正在使用的技術背后的標准。
https://www.chromium.org/developers/web-intents-in-chrome
https://www.w3.org/TR/web-intents/
這兩個都顯示了一種抽象層方法來調用人們想要的任何意圖。
人們甚至可以通過http://www.openintents.org/intentsregistry/注冊自己的意圖
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.