Thursday, May 23, 2013

Get which users the request was sent to Facebook Android

I'm trying to create a application were you can "invite" or tell your friends about it through the Facebook request dialog. https://developers.facebook.com/docs/howtos/androidsdk/3.0/send-requests/

It works somewhat but one thing I need is to know who the requests were sent TO. How can I do this?

I also have a secondary issue where the request notification only shows up on the users app - not on the desktop page. Anyone know anything about that?

Request code:

private void sendRequestDialog() {         Bundle params = new Bundle();         params.putString("message", "!");          WebDialog requestsDialog = (             new WebDialog.RequestsDialogBuilder(MyPage.this, Session.getActiveSession(), params))                 .setOnCompleteListener(new OnCompleteListener() {                      @Override                     public void onComplete(Bundle values, FacebookException error) {                         if (error != null) {                             if (error instanceof FacebookOperationCanceledException) {                                 Toast.makeText(MyPage.this,                                      "Inbjudan avbruten",                                      Toast.LENGTH_SHORT).show();                             } else {                                 Toast.makeText(MyPage.this, "N?tverksfel, kontrollera din anslutning och f?rs?k igen", Toast.LENGTH_SHORT).show();                             }                         } else {                             final String requestId = values.getString("request");                             if (requestId != null) {                                 Toast.makeText(MyPage.this, "Inbjudan skickad", Toast.LENGTH_SHORT).show();                             } else {                                 Toast.makeText(MyPage.this, "Inbjudan avbruten", Toast.LENGTH_SHORT).show();                             }                         }                        }                    })                 .build();         requestsDialog.show();     } 

If anyone can help me with this I'm very grateful! Thank you

Source: http://facebook.stackoverflow.com/questions/16689336/get-which-users-the-request-was-sent-to-facebook-android

Joe Webb Fiesta Bowl Jeanie Buss NFL playoff schedule 2013 Bronson Pelletier andy reid redskins

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.