I need a script.. Whenever an admin adds new product, it should post a product on facebook page.. Please help

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
11 years ago
Hi,

My requirement is whenever an admin adds new product through admin panel,it should automatically post the product on the Facebook page or there should be button to share this product on the Facebook page while adding a product.
Please help...
11 years ago
modify in admin page and use the following code to post the product details.


FacebookClient fbClient = new FacebookClient(PageAccessToken);
                    var args = new Dictionary<string, object>();
                    args["message"] = "Message";
                    args["caption"] = "This is caption!";
                    args["description"] = "This is description!";
                    args["name"] = "This is name!";
                    //args["picture"] = "image link here";
                    args["link"] = "product page link here";
                    fbClient.Post("/me/feed", args);


refer the following link to how to get page access token.

http://developers.facebook.com/docs/reference/api/page/#page_access_tokens

you can find the new facebook sdk and documentation at
http://csharpsdk.org/
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.