Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Post to Facebook user wall using Facebook.dll in WP7

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

like image 233
Amresh Kumar Avatar asked Jan 21 '11 10:01

Amresh Kumar


1 Answers

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);
    }
like image 79
Amresh Kumar Avatar answered Nov 14 '22 23:11

Amresh Kumar