开发者

Post to Facebook user wall using Facebook.dll in WP7

开发者 https://www.devze.com 2023-02-05 18:13 出处:网络
How to post to user wall in facebook using Facebook.dll in WP7. I found one method na开发者_高级运维med PostAsync() but am not able to understand the parameters.

How to post to user wall in facebook using Facebook.dll in WP7. I found one method na开发者_高级运维med PostAsync() but am not able to understand the parameters. Any help will be thankfull. Thanks


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


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

0

精彩评论

暂无评论...
验证码 换一张
取 消