How to prompt dialog to the user, to publish something on user wall (Facebook) using old rest api for C# and ASP.NET???
Because while using Api.Stream.Publish, it directly publishes on the user's wall without asking to the user.
How to prompt dialog to the user, to publish something on user wall (Facebook) using old rest api for C# and ASP.NET???
Because while using Api.Stream.Publish, it directly publishes on the user's wall without asking to the user.
First off, check out my new C# sdk here http://faceboosdk.codeplex.com. The samples should help you along your way quite a bit.
In regards to you question, the permission you need to ask for is stream_publish. If you are using my api and want to redirect them with a custom dialong you could get the authentication url like this:
FacebookApp app = new FacebookApp();
dynamic parameters = new ExpandoObject();
parameters.req_perms = "stream_publish";
parameters.next = "http://www.example.com/return";
Uri loginUrl = app.GetLoginUrl(parameters);
Response.Redirect(loginUrl.ToString());
If you want to prompt a dialog on the client side you must use the Facebook Javascript SDK. You can find the code for that here: http://developers.facebook.com/docs/reference/javascript/FB.login