Facebook not allow to use account for ios apps - iphone

I have created a IOS app.this app is using login with Facebook its working okay but I have created same copy for code for my new app.I have changed name of the app and also Bundle Identifier and all other setting to compile as a new app.Its not listed under the IOS setting->facebook even Facebook login not working for new app created by same code.

Did you create the facebook app on Facebook dev ? You need to do that to get the facebook id to set in your .plist.
See Doc for more information

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.

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.

Testing Facebook Native iOS App

I would like to integrate Facebook into an iOS application I am building, however it seems there is no way to set up a Facebook 'Native iOS Application' with an iOS application that is not already published and available in the App Store.
When I Set up a Native iOS Application for my Facebook App from my Facebook developer's account it requires that I fill in my App Store ID. However when I submit I get the following error message:
Your iPhone App Store ID is invalid because the iTunes App Store
reports your app as being unavailable for iPhone and iPod touch.
I have set up my application on iTunes Connect, but I have not submitted my binary yet as I am in the process of building it, so I assume that this message is due to it being unavailable on the App Store.
This seems like a catch 22 situation. I can't test my app until its in the App Store but I can't get my app in the AppStore until I have tested (and built) it. How can I test my iOS application with Facebook before release?
I've been there, but the solutions is simple.
Don't fill out the Facebook 'Native iOS Application'!
For testing all you needed is the Facebook appid.
Later on in the Deep Linking portion of the iOS Facebook Tutorial, it also mentions the AppStore ID and that you can use somebody else's ID temporarily to get all the data to save. They just say to make sure you use your own id when you finally do publish the app.
I dont think facebook Native iOS App settings are necessary. I have done facebook login with it in two of my apps and without it in one of my app and all are running well. Here are workaround by me:
Native iOS Facebook SSO won't return to app

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.

iPhone facebook connection is not working with existing native facebook app

I have an iPhone app using facebook connection using FBConnect from github code.
It worked fine in the simulator, however when I installed it in the device with existing facebook app from facebook it didn't work. It opens the existing facebook app instead of returning to my own app.
How to avoid this kind of conflict using FBConnect for facebook connection with existing facebook app?
FYI, facebook app screen says "You have already authorized MagLetters. Press "Okay" to continue." however when I click "Okay" it will bring me facebook app's default page not to my app.
I would check the following:
Are you running the latest Facebook App?
Did you setup the URL Schemes in your plist file?
Are you overriding the application:handleOpenURL: method?