ios bundle id questions to start first facebook app - iphone

I've been trying to learn how to do my first facebook app. The directions at developers.facebook.com/apps/407656052586647/summary?web_hosting=0 asks for my ios bundle id.
I've looked on this website, and Bundle ID Suffix? What is it?, discusses it (assuming bundle id and bundle suffix id are the same), and it sounds like it's linked to the apple id. I'm just developing the app and don't have an apple id yet, assuming it's tied to distributing the app to itunes. Which comes first, the chicken or the egg? I haven't even written the app so how could I have an id for itunes? I saw this Bundle ID for App submission iOS, but I'm absolutely not ready to submit it to itunes.
I read somewhere on this site that I need to go to xcode ->resource->settings bundle to create a bundle for the project. Would I put every file for the project in the bundle in the finder window?
Also, the hackbook example, referred to in http://thinkdiff.net/facebook/how-to-develop-facebook-application-for-iphone/comment-page-1/#comment-293743, in step 3 (it's calling it demoApp, but the name I found is Hackbook, but it's working as an example so far anyway) refers to setting the kAppId. Their link to create an app id doesn't work. Would it be the same as what I'm doing at developers.facebook.com in the first paragraph of this question above? Would this app id be what I get from a successful submision at developers.facebook.com/apps/407656052586647/summary?save=1 ? I see they are listing an app id and app secret code there, but it's not working because I don't have an ios bundle id? Would the bundle id be my bundle name (drag contents of xcode project in)?
Thanks for any help you can provide...
Mich

There's no need to worry about submitting the app to iTunes yet.
In order to get your app working with Facebook, you'll need to access https://developers.facebook.com/apps.
From there, click "Create New App"
Simply specify App Name. App Namespace is not needed at this point and is optional.
Click Continue and you're new Facebook app will have been created. From there, you will be provided your App Id. Use your Facebook App Id in this line of code:
[[Facebook alloc] initWithAppId:#"<APP ID GOES HERE>" andDelegate:self];

Your links dont work, but I think that they refer to the bundle ID on developer.facebook.com where you will need to create an App ID and use it in your iOS app. Did you do that already? Thats definitely a prerequisite before you even deal with itunes.

This seems to be a popular question so I thought I'd add some more info on what I decided to do. After I created the app id at the facebook developers link, I wound up using ShareKit2.0 to get the newer version of ios to work. The Hackbook/Demo example at the link above is in the older ios version so I couldn't get it to work with ios5. It was helpful to use the Hackbook to figure out what I needed for permissions, but that's it. I wound up following the SharKit2.0 directions (not at their website, go to the git version that the community is currently updating). Static Facebook sdk has no .m files in it
The directions that are at the link were helpful to create and start my first facebook app including app id. I never wound up doing anything with Bundle.

Related

Share 1 Facebook App ID with multiple iOS Apps using ACAccountStore

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.

Bundle id is not showing in iTunesconnect Bundle ID

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.

App is misconfigured for Facebook login IOS Facebook app installed

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.

Facebook Authorize not working on free version of app

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.

How are Bundle IDs supposed to work for multiple Apple apps?

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.