Facebook Javascript: how to save a Facebook event -


short version:

on facebook (javascript sdk) "save" facebook event through javascript, equivalent of clicking "save" in facebook ui, can't find in sdk... idea?

long version:

to list page's events, do:

fb.api('/somepage/events', function(response) { listevents(response.data); });

where:

function listevents(listofevents) {   console.log("number of events: " + listofevents.length);   (i=0; i<listofevents.length; i++)   {     console.log("event " + + ": " + listofevents[i].name);     // "save" "listofevents[i]" event?   } } 

thanks.


Comments

Popular posts from this blog

Django REST Framework perform_create: You cannot call `.save()` after accessing `serializer.data` -

Why does Go error when trying to marshal this JSON? -