Post to Facebook user wall using Facebook.dll in WP7

前端 未结 2 1344

How to post to user wall in facebook using Facebook.dll in WP7. I found one method named PostAsync() but am not able to understand the parameters. Any help will be thankful

相关标签:
2条回答
  • 2020-12-08 18:23

    If you're using the Facebook C# SDK you can find their docs here: http://csharpsdk.org/docs/

    0 讨论(0)
  • 2020-12-08 18:28

    Finally succeded in Posting using the follwing code:-

    var args = new Dictionary<string, object>();
     args["name"] = "Check this out";
     args["link"] = "www.xyz.com";
     args["caption"] = "";
     args["description"] = "description";
     args["picture"] = "";
     args["message"] = "Check this out";
     args["actions"] = "";
    
    FacebookAsyncCallback callBack = new FacebookAsyncCallback(this.postResult);
     fbApp.PostAsync("me/feed", args, callBack);  
    
        private void postResult(FacebookAsyncResult asyncResult)
        {
            System.Diagnostics.Debug.WriteLine(asyncResult);
        }
    
    0 讨论(0)
提交回复
热议问题