I am using facebook graph apis with FacebookSdk from codeplex.
Up vote 5 down vote favorite 1 share g+ share fb share tw.
How to create a facebook event by using facebook api in asp.net. Thanks. Facebook link|improve this question asked Jan 21 '10 at 12:24user186131314.
Public string CreateEvent(string accessToken) { FacebookClient facebookClient = new FacebookClient(accessToken); Dictionary createEventParameters = new Dictionary(); createEventParameters. Add("name", "My birthday party )"); createEventParameters. Add("start_time", DateTime.Now.
AddDays(2).ToUniversalTime().ToString()); createEventParameters. Add("end_time", DateTime.Now. AddDays(2).
AddHours(4).ToUniversalTime().ToString()); createEventParameters. Add("owner", "Balaji Birajdar"); createEventParameters. Add("description", " ( a long description can be used here..)"); //Add the "venue" details JsonObject venueParameters = new JsonObject(); venueParameters.
Add("street", "dggdfgg"); venueParameters. Add("city", "gdfgf"); venueParameters. Add("state", "gfgdfgfg"); venueParameters.
Add("zip", "gfdgdfg"); venueParameters. Add("country", "gfdgfg"); venueParameters. Add("latitude", "100.0"); venueParameters.
Add("longitude", "100.0"); createEventParameters. Add("venue", venueParameters); createEventParameters. Add("privacy", "OPEN"); createEventParameters.
Add("location", "fhdhdfghgh"); //Add the event logo image FacebookMediaObject logo = new FacebookMediaObject() { ContentType = "image/jpeg", FileName = @"C:\logo. Jpg" }; logo. SetValue(File.
ReadAllBytes(logo. FileName)); createEventParameters"@file. Jpg" = logo; JsonObject resul = facebookClient.
Post("/me/events", createEventParameters) as JsonObject; return resul"id".ToString(); } I am using facebook graph apis with FacebookSdk from codeplex. I am not able to post the venue with this code due to the open bug in facebook API. Other things work fine.
I suggest you implement this venue parameters as well so that the functionality will work as soon as facebook resolves this issue. Mark this as answer if it works for you.It will also help other people to save time on searching.
You might try this developers.facebook.com/docs/api.
Best new user answer to a new user question that I've seen. +1 – Blue Nov 24 '10 at 10:10.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.