简体   繁体   English

Facebook Android客户端到自定义应用程序通知

[英]Facebook Android Client to Custom App notification

I am developing an Android app that connects to the Facebook Open Graph via the Facebook Android SDK. 我正在开发一个Android应用程序,通过Facebook Android SDK连接到Facebook Open Graph。 My apps sends apprequests to users to invite them to open the app (if they have them or install it). 我的应用程序向用户发送apprequests以邀请他们打开应用程序(如果他们拥有或安装它)。

My problem seems to be the notifications I sent via the app requests dialog using the SDK don't seem to show up in the Notifications popup in the native Facebook Android app, but I can see them fine if I login via the Facebook Website. 我的问题似乎是我使用SDK通过应用程序请求对话框发送的通知似乎没有显示在本机Facebook Android应用程序的通知弹出窗口中,但如果我通过Facebook网站登录,我可以看到它们。 As expected, clicking the notification on the web, takes me to my app's Facebook Canvas page, but I was wondering why in the world that does not show on the Facebook Android client. 正如所料,点击网络上的通知,将我带到我的应用程序的Facebook Canvas页面,但我想知道为什么在Facebook Android客户端上没有显示的世界。

Using version 1.5 seems to show just like in the web site, but trying the latest (1.8) does not show the notification at all! 使用1.5版似乎与在网站上显示的一样,但是尝试使用最新版本(1.8)则完全不会显示该通知!

Let me know should anybody know of a workaround to this issue or if there's any missing configurations on my Facebook App settings for it to display, given the only limitation I had faced before was not having a Canvas URL defined for the app and after having set it, it started showing fine, but not for the Android 1.8 client. 让我知道是否有人知道此问题的解决方法,或者我的Facebook App设置上是否有任何缺少的配置要显示,因为我之前唯一的限制就是没有为应用定义Canvas URL,而在设置之后它,它开始显示正常,但不适用于Android 1.8客户端。

I actually just found the answer to my own question: 我实际上只是找到了自己的问题的答案:

The notifications won't show for any app requests at all if you don't have a Canvas URL setup in your Facebook App and they won't show for mobile clients if your app does not have a Mobile Web Url configured. 如果您的Facebook应用中没有设置Canvas URL,则通知不会显示任何应用请求,如果您的应用没有配置Mobile Web Url,则不会显示移动客户端。

So in order to be fully enabled for apprequests to show you need to make sure you go to https://developers.facebook.com/apps/{YOUR_APP_ID}/summary and set both the Canvas URL and the Mobile Web URL of your Facebook (even though you might not have a fully compatible web app to point to). 因此,为了完全启用请求显示,您需要确保您转到https://developers.facebook.com/apps/{YOUR_APP_ID}/summary并设置Canvas URL和Facebook的移动Web URL (即使您可能没有完全兼容的Web应用程序指向)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM