Share Facebook App ID across multiple apps - ios

I have a Facebook app ID which I'm using on 6 iOS apps for sharing posts on the user's timeline using Single Sign-on (SSO).
I have setup the custom URL Scheme suffix described here and it's working fine right now.
My question is regarding the "iPhone App Store ID" and "iPad App Store ID" fields listed on the Facebook app settings. From what I understood here, these IDs would only be used if the user started an action on the Facebook app that would required my app to be installed. It would then be redirected to the AppStore ID listed on those fields.
My question is: is this really what these fields are for? I'd rather not forward the user anywhere (leave this blank?) but it's not allowed. Maybe I should just fill it with my app's free version AppStore IDs?

If you fill in those values, users who have your Facebook app installed will see the icon for your iOS app appear in the applications sidebar within the native iOS Facebook app on their iPhone.
Tapping that icon will then either launch your native app (if it's installed) or take them to the App Store page for that app so they can install it.
If you are using your Facebook app with multiple iOS apps, then you'll either have to pick one of your native apps to be the native app that represents your Facebook app, or just leave the fields blank.
There is no way to associate multiple native apps with a single Facebook app AFAIK.

Related

Two Facebook apps in one project swift - Facebook SDK

I have two apps developed with swift Sign in facebook, then I have two apps on facebook. But now I need to join these two apps in one, which will have a screen where the user must choose between the common login or PRO login, each login that is related to one of the apps on facebook. But to set up my project in xcode, I need to add the key to the facebook app on my plist, but setting this up if I have two different Facebook apps?

Open iOS app from facebook app when tap on app name in shared url post or link

The main problem is that when user tap in facebook app on app name from which was made an post, need to open the app, this works fine for instagram app.
But this not work with my app
I can login with facebook, make posts, likes, and share links, app is registered on facebook and approved same workflow works fine in android app but not in iOS
This is how my url schemes and types looks like in my app info.plist
The problem was fixed with turn on Single Sign On in facebook app settings and after will appear the option Deep Linking and also need to activate it.

Will App Link work with apps that were installed by testflight (iOS)?

I am new to App Link and learning the basics. I was looking at the documentation and could not find the answer to this question. We are in our beta testing, using Testflight with external testers. We want to use App Link from FB directly to items in our app ( or direct users to our web page so they can sign for beta). I was wondering if App Links and the app index will work with apps that were installed via Testfligth and not the Apple App Store? Thanks for the help!
Sure it will, as long as you have the right URL schemes registered in your plist.
App detection on iOS is done by using the custom scheme you specify in your app link, and calling canOpenURL on the device. If your app is installed on the device (regardless of whether it's testflight or from the app store), then canOpenURL will return YES for that particular custom scheme.

facebook requests from ios apps are not showing in facebook mobile app

I have an iOS app and a corresponding Facebook app. When I send Facebook requests from the iOS app, they do show under https://www.facebook.com/appcenter/requests but not in the mobile Facebook app.
The Facebook app is set up as follows:
Basic settings:
Display name, Namespace, Contact email - filled in
App domains - blank
iOS settings:
Bundle ID - filled in
URL scheme suffix, iPhone Store ID, iPad Store ID - blank (app not submitted to Apple yet)
Single sign-on, Deep linking - both checked
What am I missing?
Solution:
I had to fill in at least the iPhone Store ID in iOS settings. Since I didn't have an app ID, I had to simply pick an existing app's ID and enter it there.
I believe this ID is only needed to tell Facebook app where to take the user that doesn't have this app installed, but apparently Facebook is also using it as an indication that the app actually exists. Very insidious of Facebook, if you ask me.

iOS SDK reporting "user denied" when authenticating on test device

Building an app using the Facebook iOS SDK. When testing on the simulator, I am able to log into Facebook (using Mobile Safari) and get a valid auth token. However, when I move to my testing device (iPhone 3gs running 4.3), after authenticating in the Facebook App, it returns with:
fb{APP_ID}://authorize#error=access%5Fdenied&error_reason=user%5Fdenied
Is there something special I need to do on the device or in the Facebook application itself?
Found out that this happens if your Bundle ID in your Facebook Application does not match the one in your iOS application. After updating both to match the same string, the authentication worked as expected. To my Facebook Overlords: this seems like a case where a different error string would be appropriate. Perhaps
Application Bundle ID could not be validated.
or similar.
If you've never deployed your app to the App Store or if the app is in Facebook's sandbox mode, users will need to be registered (for example, as testers, developers, or administrators) with Facebook for your app. Go to your app's admin page on Facebook, click Edit Settings in the upper right corner, then click Roles on the left side. There you can add developers and testers.

Resources