Tag: facebook

如何打开Facebook应用程序以共享WP8上的链接?

我想知道如何打开官方Facebook应用程序,以便从Windows Phone上的C#代码共享URI。 像”fb://”这样的常见Uri-Scheme可能会打开App,但似乎没有参数可行。 我有类似的想法,但它对我不起作用: LaunchUriAsync(new Uri(“fb://publish/profile/me?text=foo”)); 当然我知道我可以使用ShareTask但这不是我想要的。 你可以看看Spotfy应用程序,它确切地说,我想做什么,共享一首歌。 感谢您的帮助和解答! PS:顺便提一下Twitter ……

无法将当前JSON对象(例如{“name”:“value”})反序列化为类型’System.Collections.Generic.List`1

using System; using System.Collections.Generic; using System.Linq; using System.Text; using Facebook; using Newtonsoft.Json; namespace facebook { class Program { static void Main(string[] args) { var client = new FacebookClient(acc_ess); dynamic result = client.Get(“fql”, new { q = “select target_id,target_type from connection where source_id = me()”}); string jsonstring = JsonConvert.SerializeObject(result); //jsonstring {“data”:[{“target_id”:9503123,”target_type”:”user”}]} List datalist = JsonConvert.DeserializeObject<List>(jsonstring); } […]