2

我通过我的测试 Android 应用程序发送了一个apprequestsonComplete()并且在方法中我收到了这样的消息

捆绑[{to[0]=1460762087,请求=425924150781914}]

但是在朋友那边,他们没有收到任何通知。仅在左侧,我可以在“应用程序和游戏”旁边看到一个“1”,但单击后,我没有看到任何应用程序请求。

这是我的代码

Bundle params = new Bundle();
        params.putString("message", "Join us!");

        context.facebook.dialog(context, "apprequests", params, new DialogListener(){
            @Override
            public void onComplete(Bundle values){
                Log.d("send request response", values.toString());
            }

            @Override
            public void onFacebookError(FacebookError e){
                Log.d("facebook error", e.toString());
            }

            @Override
            public void onError(DialogError e){
                Log.d("dialog error", e.toString());
            }

            @Override
            public void onCancel(){}
        });
4

1 回答 1

7

I had the same issue, solved it yesterday:

  1. Log in to your edit app page on Facebook - https://developers.facebook.com/apps

  2. Fill the fields for Canvas URL and Secure Canvas URL, even if you add bogus URLs the notifications should start appearing properly (as long as the URLs end with a '/')

  3. Now you'll see that if you click on those notifications on a mobile device you'll either get your app opened if it's already installed or get to the google play page of your app.

  4. If you click on the notification on a desktop browser, you'll get to a facebook page which except for a top header is empty, you can fill that page with the Secure Canvas URL, you'll need a site that supports https for that.

于 2012-07-03T06:25:50.577 回答