简体   繁体   English

Windows Phone与社交网络的集成

[英]Windows Phone integration with social networks

I'm writing simple application for Windows Phone 8, and I want to implement sharing in socials (Twitter and Facebook). 我正在为Windows Phone 8编写一个简单的应用程序,并且想在社交网站(Twitter和Facebook)中实现共享。 But there is a problem: third-party libraries don't work with Portable Class library for Windows Phone. 但是存在一个问题:第三方库不能与Windows Phone的可移植类库一起使用。 But if I use REST API, I need to interact with the WebBrowser element. 但是,如果我使用REST API,则需要与WebBrowser元素进行交互。 Is there a way to authorize and post messages without WebBrowser ? 没有WebBrowser有没有办法授权和发布消息?

It is not quite clear what you mean exactly but to share a status on Facebook or Twitter you can use the ShareStatusTask 确切含义并不清楚,但是要在Facebook或Twitter上共享状态,可以使用ShareStatusTask

using Microsoft.Phone.Tasks;

ShareStatusTask shareStatusTask = new ShareStatusTask();
shareStatusTask.Status = "I'm developing a Windows Phone application!";
shareStatusTask.Show();

Have a look here 在这里看看

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM