Currently I'm working on my HTML5 ASP.NET application, which requires a graphite wall, my wall ( This means on my HTML5 canvas element), and press the Share button on my page, at that time the full picture must be posted on one of the Facebook pages.
Now my question is, is it possible that the codeplex of C # Facebook sdk should be used? If its possible, compared to posting an image on Facebook fan page using this SDK ?? Where can I find good resources to implement such functionality or similar code?
I have examined all the examples given by him, there is no example posting on Facebook Book fan page.
Or other libraries can also implement such functionality.
I have examined this library, and see that there are FacebookClient, ExpandoBaze, FacebookMediaObject Type Classes, but how and how to use this class, where there are descriptions and sample codes.
Thank you, Liger Shah
You can add "{id} / feed"
Others can post if you want to post to the picture / video wall. Try downloading samples from samples.
Install-package Facebook. Sample Here's the graph API to use. Static ID, String AccessToken, String filePath, {Static ID, String AccessToken, String filePath} {static file {fileName = System.IO.Path.GetFileName (file path), content type = "image / JPEG "}; MediaObject.SetValue (System.IO.File.ReadAllBytes (filepath)); Try {var fb = New FacebookClient (accessToken); ("Word", "photo"}}););) ;; Var postId = (string) result ["id"]; Console.lightline ("post id: {0}", post id); // Note: This JSN result is not the original Jason String as given by Facebook. Console.lightline ("jason: {0}", results. Toastring ()); Return post id; } Hold (FacebookApiException ex) {// Note: Be sure to handle this exception; }}
Comments
Post a Comment