WPF c# Integration with Facebook for image Share on Facebook timeline or Facebook wall RRS feed

  • Question

  • Hi,

    I am using WPF C#, to integrate with facebook to share image on facebook timeline but when i used this code i get #200

    outh exception error, after that i got the scope you have been used which is removed from facebook,

    Currently facebook is using Share Dialog to share the Image from third party tool Share Dialog for Device

    Please help me out how to share image on facebook from Desktop application.

    public void UploadContent() { string photoAlbumID = "199967900755629"; FacebookMediaObject facebookUploader = new FacebookMediaObject { FileName = "Carnival-Mask-Costume-Ideas-800x600.jpg", ContentType = "image/png" }; //var bytes = File.ReadAllBytes(System.IO.Path.GetDirectoryName(System.Diagnostics.Process.GetCurrentProcess().MainModule.FileName) + "\\" + facebookUploader.FileName); var bytes = File.ReadAllBytes(@"D:\Gallery\Carnival-Mask-Costume-Ideas-800x600.jpg"); facebookUploader.SetValue(bytes); var postInfo = new Dictionary<string, object>(); postInfo.Add("message", "test photo"); postInfo.Add("image", facebookUploader); postInfo.Add("access_token", fbtoken.AccessToken); var fbResult = fbtoken.Post("/" + photoAlbumID + "/photos", postInfo); dynamic result = (IDictionary<string, object>)fbResult; }

    • Moved by CoolDadTx Wednesday, September 12, 2018 5:18 PM Third party product
    Wednesday, September 12, 2018 2:35 PM

All replies

  • This is a third party library. I assume you're using their C# SDK. They mention the forum you should post in to get help with their SDK. Please post your question there since it is specifically about getting their API to work properly with your code.

    Michael Taylor http://www.michaeltaylorp3.net

    Wednesday, September 12, 2018 5:17 PM
  • for integration with Facebook, it is using third party library if any one use third party library then help me out from this, i stuck in this problem, i am unable to find out the way to do
    Thursday, September 13, 2018 12:00 PM