问题
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