0
 private void inviteFriends()
    {
        try
        {   
            Bundle params = new Bundle();
            params.putString("title", "invite friends");
            params.putString("message", "come join us!");
            facebook.dialog(this, "apprequests", params, new DialogListener() {
                @Override
                public void onComplete(Bundle values) {}

                @Override
                public void onFacebookError(FacebookError error) {}

                @Override
                public void onError(DialogError e) {}

                @Override
                public void onCancel() {}

                public void onComplete(String response, Object state)
                {
                    try
                    {
                        JSONObject eventResponse = new JSONObject(response);
                        //event_id = event.getString("id");
                        Log.i(TAG, "Event Response => "+eventResponse);
                        Log.w("myapp", friends);

                       //Toast.makeText(getApplicationContext(), "New Event Created!!", Toast.LENGTH_LONG).show();
                    }
                    catch (Exception e)
                    {

                    }
                }
            });
        }
        catch (Exception e)
        {

        }
    }
4

0 に答える 0