Android Facebook events invite -


i'm developing android application have invite facebook friends event using rest api.

below code prepare bundle of parameters

   bundle eventinviteparams = new bundle();    eventinviteparams.putstring("method", "events.invite");    eventinviteparams.putstring("eid", event.getfacebookeventid());    eventinviteparams.putstring("personal_message", "sample message");     string userids = "";    (int = 0; < facebookadapter.getcount(); i++) {     facebookuser user = facebookadapter.getitem(i);     if (user.isselected()) {         userids += user.getid() + ",";     }    }    if (userids.length() > 0) {     userids = userids.substring(0, userids.length() - 1); // remove last comma     eventinviteparams.putstring("uids", userids);    } 

then

response = mfacebook.request(eventinviteparams); 

where mfacebook facebook api object.

the response

{"error_code":200,"error_msg":"permissions error","request_args":[{"key":"uids","value":"xxxxxxxxx,xxxxxxxxx"},{"key":"method","value":"events.invite"},{"key":"format","value":"json"},{"key":"eid","value":"xxxxxxxxxxx"},....]}

application has following permissions

"email","publish_stream","read_stream","create_event","offline_access","user_events","friends_events","rsvp_event" 

i want mention i'm not event creator. have searched on fcb docs , google cannot find proper answer.

thank response. continued research , found error

"error_code":200,"error_msg":"permissions error" 

was because not following event. once rsvp event, got response false (i don't know why) , error gone. checked in facebook , given people invited.

thanks


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -