雖然試圖從我的winjs應用程序共享數據(簡單文本),當我點擊共享魅力時,我只有郵件和另一個個性化的應用程序作爲一個共享選項(目標),我期待從我的地鐵應用程序共享Facebook或Twitter上的內容。html/js Windows 8人應用程序(Facebook,Twitter)不適用於共享目標
我已經通過添加Facebook和Twitter帳戶配置了我的人員應用程序,我可以看到所有Facebook帖子和推文。
當我點擊共享魅力時,如何將People App添加到我的共享目標中以顯示?
我想知道是否有額外的代碼,我必須插入或其他任何事情要做?
任何有用的建議,請?
//this the function that allow me to share content from the share charm
function ShowandShareContract() {
Windows.ApplicationModel.DataTransfer.DataTransferManager.showShareUI();
var dataTransferManager = Windows.ApplicationModel
.DataTransfer
.DataTransferManager
.getForCurrentView();
dataTransferManager.addEventListener("datarequested", function (e) {
var request = e.request;
request.data.properties.title = "Debugmode";
request.data.properties.description = "Debugmode Share App";
request.data.setText("Hello from DebugMode App");
});