How to update event with restfb

233 views
Skip to first unread message

Guy Chauliac

unread,
Mar 4, 2014, 5:45:36 PM3/4/14
to res...@googlegroups.com
Is it possible to update an existing event with restfb?

I tried to do it like this:

facebookClient.publish("events", FacebookType.class,
                Parameter.with("id", "273309122838095"),
                Parameter.with("name", "updated event name"));


but this does not work. I'm getting this error:

Received Facebook error response of type OAuthException: (#100) Specifying multiple ids with a post method is not supported (code 100, subcode null)

Anyone knows if it can be done and how?

Guy Chauliac

unread,
Mar 6, 2014, 9:25:48 AM3/6/14
to res...@googlegroups.com
Found the solution myself after digging into the facebook api and the restfb code:

Boolean isUpdateSuccess=
                facebookClient.publish( "/273309122838095", Boolean.class,
                        Parameter.with( "name", "updated event name" ));

Greetz,
Guy.
Reply all
Reply to author
Forward
0 new messages