本地 iOS 应用程序: 我应该在 Facebook 的开发者“ iPhone 应用程序商店 ID”中的“初始设置”下放什么?

我差不多完成了一个原生的 iPhone 应用程序,但是我需要通过 Facebook 完成 SSO。尽管我尽了最大的努力,我还是无法弄清楚在我向 Facebook 网站注册我的应用程序的过程中,“ iPhone 应用程序商店 ID”字段应该有什么价值。

我有一个“应用程序 ID”在 http://developer.apple.com/ios/manage/bundles/,但 Facebook 给我的错误“ iPhone 应用程序商店 ID 必须是一个整数”,当我把我的应用程序 ID 在该领域。我的应用程序 ID 不是一个整数。

我知道 Facebook 特别给这个领域贴上了“ App Store”的标签; 请告诉我这不是真的,因为... ... 如果“ App Store”还在开发中,怎么会有人拥有它呢?

每个人都有激发他们第一个 Stack Overflow 帖子的“那个问题”,这是我的。我急切地等待着我遗漏了什么的消息。

80501 次浏览

Create a new app in iTunes Connect. That app will have a unique app id. That's the id they want. That is, in fact, the App Store id for the app.

The accepted answer is true, but the iOS SDK docs also say

iPhone App Store ID - If you have an iPhone app that is listed in the iTunes App Store enter the ID here, e.g. 123456. If Facebook links out to your app and finds that the user does not have your app installed, then it will take the user to your app in the store. The user can then install your app. If your app is not in the iTunes App Store you can enter any valid app's ID but be sure to update this when your app is approved in the App Store.

Emphasis mine.

This is what I did. I use an existing public app ID (picked one at random from the store) because my app isn't out yet..

Right now, the simplest solution is to just type in "0" as iPhone App Store ID - a solution which is also demonstrated in the Facebook SDK Getting Started Guide: https://developers.facebook.com/docs/getting-started/facebook-sdk-for-ios/3.1/

For already published apps, it is part of itunes url appearing at the end https://itunes.apple.com/.../idxyzabc123 xyzabc123 is the id for above url

For testing use 0(Zero),

  • iPhone Store ID = 0
  • iPad Store ID = 0

and click on Save Changes.

0 Will be disappeared but your work will be done.

Note:- update this id before going live.

Long story short, you can use "0" for development.

If you login to iTunes Connect and visit your app, it should be under "Apple Id".

If you're app is already published, open your app on iTunes Connect → General → App Information → Apple ID. You need to copy this number into the iPhone Store ID in Facebook Developers dashboard.

enter image description here