I have an iOS app configured to use Facebook login via iOS's ACACcountStore. I'm not using the Facebook SDK.
I'm creating another app (for the same company) and I'm trying to take advantage of the existing Facebook App that I've set up for the first iOS app.
I've read that you can add multiple bundle ids in the Facebook App's Settings. I've done this, but unfortunately, I get an ACErrorPermissionDenied error when trying to log in.
Using iOS's built in Facebook login, am I able to share one Facebook App Id with multiple iOS apps with different bundle ids?
Ahh, figured it out.
The good news is that this is definitely possible. Just go into your Facebook app's settings and add another bundle id.
Make sure that the bundle id you've set in your app is exactly the same as the one you add to facebook.
In my case, I was formatting part of my bundle id like so:
com.myApp.${MY_CUSTOM_BUNDLE_ID_SUFFIX:rfc1034identifier}.
MY_CUSTOM_BUNDLE_ID_SUFFIX is a User-Defined setting in my Target's Build Settings. I had it set to:
foo.bar
When processed with the rfc1034identifier, the . was converted to a - so it ended up being com.myApp.foo-bar, so the mismatch is what was causing login to fail.
I am facing a strange issue that I have never faced before. I created a new appID with new Bundle ID, but it is not showing up in itunesconnect "Bundle ID".I googled it and i found some questions regarding this, but only questions there are no answers on it. is there any way to tackling this issue, any help much appreciated.
Thanks.
Try to sign out, and then sign in to itunesconnect site. it worked for me
I just had to create an App Id and then log out of iTunes connect and back in again.
iTunes connect is truly awful.
I've seen this happen myself from time to time, but so far it's always been down to a delay in iTunes Connect and has sorted itself out without me doing anything other than waiting!
Like this guy here, the solution for me was wait, so apple could process my new id. (about 6 hours or so).
For me it was to check the removed apps list — someone has already used that Bundle ID and removed the app associated with it before.
for me i sorted it out by emailing to Apple about the issue, then i got solution for that.
Edit
At that time when i had that issue, nothing did work for me i tried reload, refresh, sign out, restart system, nothing worked out.
I left with no option but to email to Apple on their support email, they fixed that manually for me. now it could be possible with reload page or sign out and sign in i am not sure.
Well there is nothing specific in email to apple on there technical support, just mention you are facing that problem, they might set this up manually for you. hope you got it.
Login to member centre and create a distribution profile using the same app id which you are going to use in the iTunes Connect. Then logout from iTunes Connect and Login again and try. It will show the Bundle ID in the drop down menu.
Hope this will help you.
If you tried to create the app record and if the app or bundle id does not appear:
In order for you to be able to see the app record in iTunes Connect, the team agent of the account must login and adjust your settings so that you are able to view the app.
Please provide the team agent with the following steps to add your access to the app.
In the Users and Roles pane, select the user you want to edit by clicking on their Apple ID.
Select the Roles pane.
In the Apps window, the team agent can add the newly created app to the users access, by selecting the down arrow in the window, and choosing the new app.
Once the new app is added, click Save.
Once this information has been updated by the team agent, you will be able to view the app in iTunes Connect.
Refreshing and sign out/signing in again doesn't worked.
In my case what worked is to contact apple support team for the concern, they added it manually and it was there after waiting for 24 hours.
For me the issue was that we had previously deleted/archived the apps with such bundle identifiers. But this was long long time ago, I didn't even remember that. So they just had to be recovered in iTunes Connect.
https://appstoreconnect.apple.com/
Have you ever heard 'XC Wildcard-' option to create new iOS or tvOS app creating new bundle ID on AppStoreConnect platform? Yes it is possible with 'XC Wildcard-' option. So if your bundle ID does not appear on the AppStoreConnect;
Click + (Plus button) and Select the New App option.
Enter needed informations and choose 'XC Wildcard-*' option from Bundle ID section.
After that, you'll see Bundle ID Suffix text box. Enter your bundle identifier there and
Click the Create button.
If your bundle id is not using from other apps, your app will generated successfully. Otherwise, you can change your bundle id and you can create your app on AppStoreConnect.
for me the solution was to resister a new id, then choose this id and save, then logout again and login and now you can see your bundle id.
To get rid of this issue, I create separate profiles for my extensions and app targets as well that are definitely paired with single app id. I had SiriKit extensions in my app and multiple targets along.
These Steps Worked for me.
Logout from itunes connect
Login to apple developer account
Delete existing identifier
Create new identifier with Explicit radio box checked next to BundleID
Login to Itunes connect again
Hopefully you'll be able to see bundle identifier there.
In My case, I've Just removed an App From AppStore Connect(Not yet released into AppStore). But I can see that THE APP IS NOT COMPLETELY REMOVED, but categorized under "Removed Apps". Now I want to create a new app in Appstore connect using the same bundle ID that I've used in the app that I just removed, But my BundleID is invisible while creating new App. I've just Mailed Apple regarding this. Will keep you posted on this.
I've had this same issue a few times, and it's been for different reasons. Here's a few things to check:
1) Did you set the developer profile in xCode? When you create a new project it sets the developer ID, so if you're trying to make a new one to.. lets say... do an ad-hoc release, it won't be present in the old project. It's set in targets>build settings>code signing
2) Download your profiles from the organizer. New profiles need to be loaded into xCode
3) Close/quit and reopen xCode, sometimes it breaks.
4) Try doing a clean
It seems that in Xcode 13, for new apps the app's Name, Bundle ID, etc... is set within Xcode during the upload process.
I saw this linkenter link description here
But it doesn't solve my problem.
I downloaded the latest Facebook sdk 3.1.1
The original SessionLoginSample provided with sdk works fine.
I made the following changes and the result is: App is misconfigured for Facebook login
Where is my mistake?
I created a new sample Facebook app following step by step the Facebook doc:
Facebook App Image on Flickr
I loaded in xCode the original SessionLoginSample and I changed only the bundleId and the Facebook ID:
xCode plist image on flickr
i experienced the same problem many times.
First make sure you have your Facebookappid set in your property list correctly.
Then go to facebook account settings and delete your ios app from applications.
then go to developer settings of facebook for your ios app.Make sure the app id is correct and also make sure that the bundle identifier is also same as your propertylist in xcode.It should be working afterwards
UPDATED : You do not need to delete the app.Try delete the app from your Facebook settings first.Then go to your Facebook app on iOS and log out.Remove your own app from the device and reinstall (without loving in to your account).Then you try to connect from your own app Facebook will prompt and ak your username and password and it will not return to your app.You clsoe the app and return to your own app manually.When you try to connect again in your own app FB it will ask you for permissions.
I reproduced the problem somehow and fixed like this.
By the way i also set the App Type: setting in advanded settings to Native/Dssktop.
Make sure you configured your app properly as per the following guidelines https://developers.facebook.com/docs/getting-started/facebook-sdk-for-ios/3.1/ Check whether you bundle id is as per you configured in the Native ios settings of app configuration.
I have a free and paid version of my app on itunes but as the free version has in app purchase I cant use the same bundle id across the two apps and therefore the only way I can see of adding facebook to the free app is having a second facebook app registered?
I have done this but for some reason when calling [facebook authorize: permissions] my app boots up the facebook app but returns straight away to my app, not getting in to any of the handleOpenUrl functions or even asking the user for permissions. The code is identical line by line to the paid version of my app with the only difference being the appID that is used. Any ideas what would cause this? Facebook did work on both apps until the recent updates.
After further playing around with this code I have found it works if I tell it to not use the FB App and to instead use safari authorisation. Still failing to see why I can use the app on one app but not another :s
Log in to developers.facebook.com and check your iOS bundle ID for your free app carefully. Make sure the bundle ID you tell Facebook is exactly what your app thinks it is. If it's not identical, the new Facebook app will not allow your app to authenticate.
You can have multiple iOS apps use the same Facebook app. Check this link..
https://developers.facebook.com/docs/mobile/ios/build/#multipleapps
There are three steps:
Add the additional bundle id in your apps "iOS Bundle ID" file in your faceBook app settings.
Then in your iOS apps, use the 'urlSchemeSuffix' option in the 'initWithAppId' method.
Modify the URL Schemes property in the info.plist.
The link explains it in detail. No need to register a 2nd app with Facebook.
Hope this helps.
Here is the situation we would like to have: release two different apps by the same company. Ideally, they could share login info across them but this is NOT mandatory.
Our current plan is this:
One provisioning profile with the Bundle ID "com.wikia.*"
App one (which is already out) would have a Bundle ID suffix of "app.GameGuides" so it's "Your Bundle ID" value is "com.wikia.app.GameGuides".
App two (which we are trying to release) would have a Bundle ID suffix of "lyricwiki" so it's "Your Bundle ID" value is "com.wikia.lyricwiki".
Is that how it's supposed to work or should each app have their own provisioning profile with the wildcard only for variations of the SAME app?
Any help is greatly appreciated!
[Note: App one (GameGuides) is already out, using a profile with the prefix "com.wikia." in the App Store & is also on the Android Market... and app two (LyricWiki) is on the Android Market & we're trying to submit it to the App Store but we are getting an error that our "Bundle ID" has already been used... not sure if this is an error on the "Your Bundle ID" or if the wild-carded Bundle ID can't be reused (which seems strange since it is wildcarded).]*
Docs on wildcard app IDs:
https://developer.apple.com/library/ios/#qa/qa1713/_index.html
Our company does what youre describing, com.wikia.app1, com.wikia.app2, etc. I would double check that you didnt try to submit it twice and make sure there isn't actually another app with that bundle ID, otherwise contact Apple to see why it's being rejected.