Talk:Events.create

From Facebook Developer Wiki

Revision as of 00:21, 7 October 2009 by Pete Bratach (Talk | contribs)
(diff) ←Older revision | Current revision (diff) | Newer revision→ (diff)
Jump to: navigation, search

Contents

[edit] Missing Functionality

why can't we add an image? this is key!

I agree, I think this API really needs to duplicate what you can do if you create an event manually. Another option missing is setting what network the event is in.
Please vote on bug #3961 if you'd like to have the ability to specify Event images: http://bugs.developers.facebook.com/show_bug.cgi?id=3961 --534241990 04:18, 26 May 2009 (PDT)
Bug has been closed and we will be able to specify an image through events.create and events.edit (Push_Changes_-_June_09_2009). But I'm not sure when this will be ready to be used. Not sure if a new version of the facebook api will be released or not ... --1557560908 08:20, 11 June 2009 (PDT)
Maria, look for the new functionality to be ready in next week's push. Sorry for the delay. Pete (563683308 11:44, 12 June 2009 (PDT))
Don't worry Pete, thanks for letting us know. I did not see any mention to this on Push_Changes - June 16 2009, I'm now sure if you meant the next one after June 9, or after June 16. You think it will be on the next one?--1557560908 06:35, 18 June 2009 (PDT)
Yes, it's been delayed for a second week now, as we held it to make some performance improvements. We're looking to launch the feature next week. Watch the Platform Status Feed for an update. Pete (563683308 12:24, 18 June 2009 (PDT))
Oh sorry I was not checking that page, I will look for news there, thanks a lot! --1557560908 08:46, 19 June 2009 (PDT)

Also, how to specify the host pointing to either a Group or a Page?

[edit] Suggestion: Field for "COST"

Just created my first event. Was slightly daunting but glad to see that most of what I was expecting was there, with one exception: IMHO there should be a field for "COST" (or "PRICE"). Input type should be set to text string, as this would allow users to enter in things such as "FREE" or "$10 cover + 2 free drinks"

Good idea. I submitted it internally, so hopefully this will get done before long. -- Pete (563683308 18:35, 7 February 2009 (PST))

[edit] Is it possible to add an event to a facebook page (instead to my profile)

i'd be interested in an answer to this question as well


Please anwser, thanks.

How about creating an Event as part of a group?

I added the answer. A few weeks ago it worked as I decribed at the wiki. But now I'm experiencing problems and get a permission denied 200 error. Any idea?

I have no idea, but I would like to do the same : add an event to a page instead of a user profile. Could you explain how did you managed to do that, even if it doesn't work much longer ? Maybe I could find a solution if I knew how did you do it ? Guillaume (1059844012 09:37, 28 May 2009 (UTC))

I solved the problem, was just stupid mistake... As I tried to describe you just have to get the id or gid of the page you want to post your event. Go to the page and you can read it in the adress line of your browser.e.g. http://www.facebook.com/home.php#/group.php?gid=12345678910... Enter that in the field "page_id".e.g. $event_info['page_id']='12345678910' That's it. If you want to post to more than one profile/group just loop through the events_create process an alter the page_id ;-) Hope that this helps you

[edit] Better explination of the parameters

Any chance the parameters could be better explained? Like what format they are expecting and what the values mean? For example I saw privacy type is an int on a different site's explination of the api but don't see how the int maps to the privacy levels. And what is supposed to be in the feild for host and page_id? Are they just freeflow feilds or do they mean something?

The values are defined in Event (FQL). I added a pointer in this article. Sorry for the omission. -- Pete (563683308 17:51, 17 March 2009 (PDT))

[edit] Invite all members of $page_id

I would really like to see a boolean or something that would automatically invite everyone in the page/group that the event is for ($page_id). Obviously constrained to the group size limitation when creating an event manually.

[edit] Authentication?

Is authentication required to use this service or not? The documentation makes it seem as though an application can create its own event with no authentication if there is no active session, but I keep getting forced to authenticate.

This sounds like it could be a bug. Please file a bug and include sample code if you can. Thanks, Pete (563683308 18:37, 8 April 2009 (PDT))

No, it's not a bug, you always have to authenticate your application with facebook with an API key, ... even if your don't need to have a user authorization. FOr example, event.create doesn't require user authorization but you need to authenticate with facebook before creating an event. However, it's better to have a user authorization, because if you don't, the event creator is your application (which have no friend & no networks), so nobody will be able to watch your events. Guillaume (1059844012 09:37, 28 May 2009 (UTC))

Your application's API key is always required, but a user's session key is not. If you're passing your API key, but not a session key, then your app is the creator and admin for the event, like you say. If you're not passing your API key, then that's probably why you're being asked to authenticate. If you are passing the API key and are still being required to authenticate the call, then it could be a bug. Pete (563683308 14:15, 28 May 2009 (PDT))

[edit] City Parameter Requires Valid Cities

I'm having issues with the City parameter. It seems that it's attempting to match any value passed in as a City to a predetermined list. If it finds a match all is good, if it finds something close it is inserted (even if that is not what the user intended), if it cannot find anything close it simply errors out. While this is great as far as data integrity it's making it very difficult for me to build an application that allows for the creation of events. Is there a list of acceptable cities somewhere? Or perhaps an undocumented FBML tag that will create an auto-complete city field (like the one the event app uses)?

This is a good suggestion. I brought this up internally and this should get worked on soon. Thanks, Pete -- 563683308 17:21, 6 October 2009 (PDT)
reference