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

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.

Related

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.

Testing Facebook iOS requests before publishing in App Store?

I'm able to successfully send requests through the Facebook iOS SDK, however the notifications do not appear in the user's iOS app. Based on other answers on here, I've determined this is because I do not have a iPhone Store ID configured in my FB developer settings. However, my iPhone Store ID won't work because I haven't published the app yet...so how does one test Facebook iOS requests before publishing their app?
It seems the only solution is to use the app ID of an already published app for testing, and then change to the actual app ID when you publish your app. If you don't have access to a published app ID, I found this solution for finding one: Get iTunes App Store ID of an app itself?

Facebook mobile redirects to app store and not the app

I have a facebook app. On the mobile side I created an android app and a iOS app. SO if i click on the app it should redirect to the android/iOS app on the mobile or app store/ play store. On android it works fine but on iOS it never redirects to the app even if it's installed. It redirects to app store.
Is there any way to solve this?
You have to register a custom URL scheme in your app to redirect the user from one app to another on iOS. In particular, Facebook will have you include your Facebook App ID as part of the URL scheme.
There is a nice tutorial here on creating custom URL schemes here.

Share Facebook App ID across multiple apps

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.

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