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;
}