邀请朋友到Facebook应用程序 - android,没有邀请发送 [英] invite friends to facebook app - android, no invitations sent

查看:107
本文介绍了邀请朋友到Facebook应用程序 - android,没有邀请发送的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经用android编程创建了一个Facebook事件,现在我想邀请朋友。
以下是我的代码邀请朋友:

I have created a facebook event with my android coding and now I want to invite friends to it. Below is my code to invite friends:

  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)
        {

        }
    }

代码适用于选择朋友,标题和消息随朋友列表一起提供。我可以发送邀请,但没有通知发送给选定的人。

The code works up to selecting friends, the title and message comes with the friend list. I can send the invitation but no notifications are sent to selected people.

请告诉我需要做什么。谢谢你提前!

Please tell me what needs to be done. Thank you in advance!

推荐答案

此图片。

您是否在这样的应用程式开发人员设定中启用了应用程式um Facebbok标签。
如果不这样,它不会发送通知给你的朋友。

Have you turned on the App omn Facebbok Tab in your app developer setting like this. If don't then it will not sent notification to your friends.

这篇关于邀请朋友到Facebook应用程序 - android,没有邀请发送的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆