99

I'm about finished with a native iPhone app, but I need to finish SSO via Facebook. Despite my best effort, I am unable to figure-out what value is supposed to go in the "iPhone App Store ID" field during the process where I register my app with Facebook on their website.

I have an "App ID" at http://developer.apple.com/ios/manage/bundles/, but Facebook gives me the error "iPhone App Store ID must be an integer" when I put my App ID in that field. My App ID is not an integer.

I know Facebook specifically labels the field with "App Store"; please tell me that isn't really the case, since... how would anyone have something on the "App Store" if it's still in development?

Everyone has "that issue" that motivates their first Stack Overflow post, and this is mine. I eagerly await news that I'm missing something.

Greg M. Krsak
  • 2,102
  • 1
  • 18
  • 28

7 Answers7

109

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.

Mark Granoff
  • 16,878
  • 2
  • 59
  • 61
  • 8
    @Greg: You can create the app in iTunes Connect (and get the id) without actually submitting your binary. – progrmr Oct 12 '11 at 20:20
  • 2
    Thanks, all. That's the level of support I expected from SO members. Much appreciated. – Greg M. Krsak Oct 12 '11 at 20:33
  • 37
    However, unless it is actually in the stores, you will get "Your iPhone App Store ID is invalid because the iTunes App Store reports your app as being unavailable for iPhone and iPod Touch". – Roger C S Wernersson Jan 11 '12 at 12:13
  • 1
    i have the same problem i have created app in itunesconnect but when i enters my app id in iphone storeid in facebook developers app portal it shows me wrong please suggest me what to do ? – Kalpit Gajera Jul 31 '14 at 11:09
  • There is an "iPhone Store ID" and a "iPad Store ID". I have only one "App Store id". Shall I fill both "Store ID" with the same "App Store id". – mcfly soft Jun 12 '16 at 08:09
  • I think so, yes. The IDs are one and the same for both iPad and iPhone, if your app is universal. – Mark Granoff Jun 13 '16 at 01:09
  • The ID is of an unpublished app will not work. Facebook will tell you that it is not able to retrieve the iphone/ipad store id from apple. – Sumeet Basak Dec 12 '17 at 11:01
  • Using 0 does not work anymore. I user empty space " " for iPhone Store ID and iPad Store ID and new platform was added. As mentioned multiple times - do not forget to update these two fields when publishing app – Žiga Jan 30 '18 at 13:35
51

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..

CVertex
  • 17,997
  • 28
  • 94
  • 124
  • Question: how can I update the ID after Apple approves my app? I must make a new build, upload it, and wait again to be approved, isn't it? – John Smith Mar 22 '13 at 07:01
  • @SavaMazăre I haven't gone through this process in about a year. But when I did last year, I was able to change the Facebook app's "iPhone App Store ID" before the facebook app went live. – CVertex Mar 25 '13 at 12:41
22

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/

IOSProgrammer
  • 221
  • 2
  • 2
17

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

N0mi
  • 714
  • 7
  • 14
16

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.

Mohammad Zaid Pathan
  • 16,304
  • 7
  • 99
  • 130
8

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

Zorayr
  • 23,770
  • 8
  • 136
  • 129
2

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".

FreePender
  • 4,770
  • 2
  • 18
  • 15