Facebook的应用程序的请求没有通过Facebook Android SDK中发送给Facebook好友 [英] Facebook App request not sending to Facebook friends through Facebook Android SDK

查看:351
本文介绍了Facebook的应用程序的请求没有通过Facebook Android SDK中发送给Facebook好友的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在再寄一次曾跟随下面的帖子发送应用程序请求一位朋友,以及所有的朋友,

I want to send app request to one friend as well as to all friend at a time.I had followed the following posts,

<一个href=\"http://stackoverflow.com/questions/10153175/how-to-send-app-requests-to-friends-through-facebook-android-sdk\">how-to-send-app-requests-to-friends-through-facebook-android-sdk

对话/请求/

我能够得到尽可能在开发网站所描述的正确反应,但问题是没有朋友都得到应用要求notification.Following是什么,我都试过了,

I am able to get the correct response as described in the Dev site but the problem is none of my friends are getting the app request notification.Following is what I have tried,

Bundle params = new Bundle();
    params.putString("FIRST INVITATION", "My invitation from facebook..");
    params.putString("message", "My First App Invitation from Android App to facebook.Lol");
    params.putString("app_id",APP_ID);
    mFacebook.dialog(this, "apprequests", params, new DialogListener() {
        @Override
        public void onComplete(Bundle values) {

             Toast toast = Toast.makeText(getApplicationContext(), "App request sent", Toast.LENGTH_SHORT);
                toast.show();

        }

        @Override
        public void onFacebookError(FacebookError error) {

            Toast.makeText(getApplicationContext(), "Facebook Error: " + error.getMessage(), Toast.LENGTH_SHORT).show();

        }

        @Override
        public void onError(DialogError e) {


        }

        @Override
        public void onCancel() {

             Toast toast = Toast.makeText(getApplicationContext(), "App request cancelled", Toast.LENGTH_SHORT);
                toast.show();
        }
    });

谁能告诉我出了什么错在这里?

can anyone tell me what went wrong here??

编辑:1

我检查附带的Facebook SDK中的Hackbook示例应用程序APP ID和我的应用程序工作正常,所以才知道,必须有禁用沙盒模式应用setting.I一些问题too.Is有所需的任何额外的设置为了发送应用程序的请求?

I checked the Hackbook sample Application APP ID which comes with Facebook SDK,and my app works fine So came to know that there must be some problem in app setting.I disabled the sandbox mode too.Is there any extra setting required in order to send app request??

修改-2

一些R&放后; D我才知道真正的problem.There是在编码part.I是在FB仪表板犯错误的应用程序设置没有问题。我需要的所有添加Facebook的哈希键应用setting.Anyways,感谢您的帮助。

After some R & D I came to know the real problem.There is no problem in the coding part.I was making mistake in app setting in the FB Dashboard. I need to add a Facebook Hash key in the app setting.Anyways, thanks all for your help.

推荐答案

一些R&放后; D,我才知道,编码部分是所有ok.The问题在于Facebook应用程序setting.I做了以下解决这个问题,

After some R&D, I came to know that the coding part is all ok.The problem lies in the Facebook app setting.I did the following to solve the issue,

1.设置在原生Android应用程序部分中所需的字段。

我。包名称:你的Andr​​oid project.Setting的包名该领域有助于导航到GOOGLEPLAY应用程序的页面

i. Package Name: Package name of your android project.Setting this field helps navigating to GooglePlay page of your application.

ii.Class名称:启动程序类项目的。设置此帮助,如果安装打开你的应用程序的指定页面。

ii.Class Name: The launcher class of your project. Setting this helps to open the specified page of your app if installed.

iii.Key哈希:它是用来为授权您的应用程序进行安全检查

iii.Key Hashes: It is used for a security check for authorizing your app.

iv.Facebook登录:应该启用

v.Deep链接:应该启用

2.将Android的密钥散列的开发环境。

这篇关于Facebook的应用程序的请求没有通过Facebook Android SDK中发送给Facebook好友的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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