Post to Facebook user wall using Facebook.dll in WP7

江枫思渺然 提交于 2019-12-28 11:56:27

问题


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 thankfull. Thanks


回答1:


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



回答2:


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



来源:https://stackoverflow.com/questions/4757924/post-to-facebook-user-wall-using-facebook-dll-in-wp7

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!