Pergunta

Im having troubles calling friendId/apprequests rest api method, here is the post Im sending, using the RestFB API for Java:

Oct 13, 2011 12:09:30 PM com.restfb.DefaultWebRequestor executePost INFO: Executing a POST to https://graph.facebook.com/TO_USER_ID/apprequests with parameters (sent in request body): message=BLABLABLABLA!&data=BLABLABLABLA&access_token=XXXXXXXXXXXXXXXXXXXXXXXX&format=json

Oct 13, 2011 12:09:32 PM com.restfb.DefaultFacebookClient makeRequestAndProcessResponse INFO: Facebook responded with HTTP status code 400 and response body: {"error":{"message":"(#2) User can't send this request: Unknown error","type":"OAuthException"}} Any help on this ?

And also I tried with a GET request, I got a status code 200 but no request is being generated:

INFO: Making a GET request to https://graph.facebook.com/TO_USER_ID/apprequests?message=BLABLABLABLA%21&data=BLABLABLABLABLA&access_token=XXXXXXXXX&format=json Oct 13, 2011 12:08:51 PM com.restfb.DefaultFacebookClient makeRequestAndProcessResponse INFO: Facebook responded with HTTP status code 200 and response body: {"data":[]} Any clues on this?

Thanks.

Foi útil?

Solução

Try this:

Facebook: send an app invitation

You can skip the access_token part if you already have one. Remember you can only send request to users that already have authorized your app.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top