简体   繁体   English

Facebook应用程序请求未在iOS设备上显示?

[英]Facebook App Requests aren't shown on iOS devices?

I've sent an app invitation from an iPad app to a test Facebook account via Facebook's API. 我已经通过Facebook的API向iPad应用程序发送了应用程序邀请到Facebook帐户。 When I login to the test account on my PC, the app request is there. 当我在PC上登录测试帐户时,应用程序请求就在那里。

When I login to the test account on my iPad (either via Safari or via the Facebook App), I can see the number "1" next to the App Centre tab, but when I click it and go to the App Centre, there's no request. 当我在iPad上登录测试帐户时(通过Safari或通过Facebook应用程序),我可以看到App Center选项卡旁边的数字“1”,但当我点击它并转到App Center时,没有请求。 In fact, I can't see any App Centre areas dedicated to requests on Facebook for iOS - there's only Social Picks and Top Apps. 事实上,我看不到任何专门针对iOS for iOS请求的App Center区域 - 只有Social Picks和Top Apps。 Any explanation for this? 对此有何解释?

This is caused by an incorrect configuration on the Facebook app setting page. 这是由Facebook应用程序设置页面上的错误配置引起的。 When you are setting up the app, you need to make sure the following is set correctly. 在设置应用程序时,您需要确保正确设置以下内容。

Go to developers.facebook.com then select "Apps". 转到developers.facebook.com然后选择“Apps”。 Edit your app and fill in the following.. 编辑您的应用并填写以下内容..

  • iOS App Bundle (dont think it's essential but fill it in, this the bundle id from Xcode (com.companyname.appname)) iOS App Bundle(不要认为它是必不可少的,但要填写它,这是来自Xcode的包ID(com.companyname.appname))

  • iPhone/iPad App Store ID - This is ESSENTIAL, one of these must be filled in with a valid app store ID. iPhone / iPad App Store ID - 这是必须的,其中一个必须填写有效的应用程序商店ID。 You get this when you create an app with iTunes Connect. 使用iTunes Connect创建应用程序时可以获得此功能。 If you create an app, and fill in the details right up to the point where it asks you to submit the binary, it will generate what Apple refers to as an Apple ID (or iTunes Id?). 如果您创建一个应用程序,并填写详细信息直到它要求您提交二进制文件,它将生成Apple称为Apple ID(或iTunes Id?)的内容。 It's just a long integer value. 它只是一个长整数值。 It doesn't have to be for the corresponding app, if you already have apps in the app store just log in to iTunes connect and use an existing one for testing. 它不必是相应的应用程序,如果您已经在应用程序商店中有应用程序只需登录到iTunes连接并使用现有的应用程序进行测试。

  • Configured for iOS SSO - Enabled 已配置为iOS SSO - 已启用

  • Configured for Deep Linking - Enabled 已配置为深层链接 - 已启用

The only functionality you get from Facebook when a user clicks an app notification on iOS is the user being redirected to the app, if installed, or to the App Store if not. 当用户在iOS上点击应用通知时,您从Facebook获得的唯一功能是用户被重定向到应用程序(如果已安装),或者如果没有,则被重定向到App Store。 Also if you want your app notifications to show up on desktop, you'll need a Canvas URL under the "App On Facebook" section. 此外,如果您希望应用程序通知显示在桌面上,则需要在“App On Facebook”部分下的Canvas URL。

In my tests I had to have a canvas URL to get iOS notifications working, but I'm not sure if this is a bug with Facebook or intended behaviour, so if it doesn't work with just iOS enabled, enable app on Facebook too and stick in a random url if you don't have one. 在我的测试中,我必须有一个画布URL才能使iOS通知正常工作,但我不确定这是否是Facebook或预期行为的错误,因此如果它不能仅启用iOS,请在Facebook上启用应用程序如果你没有随便的网址,请坚持使用。

我只是想到这种症状的另一个原因:如果你的应用程序有位置限制(仅在某些国家/地区可用),收到请求的用户必须在该国家/地区(例如,我必须通过GeoEdge与我联系)。

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

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