How to connect both Android and Iphone application to the same app in Facebook? - iphone

I have used Facebook API to make posts to my wall on Facebook with my Android app. To do this I made an app on the Facebook developer site. I used the key hash from the Android application and the APP_ID from the facebook app to cross match them.
Now I want to connect my Android app to a facebook app which already is connected to an Iphone application. This app has my key hash added, and I tried using its APP_ID instead of my own but it doesn't work.
I am thinking it might be because I'm not using the application secret in my Android app, but it is used in the Iphone app. If this could be the problem, where do I add this application secret? Xcode has such an easy system for adding parameters like this one, but I don't know what the equivalent in Android is.
Thanks!

Per the Facebook Android SDK instructions "make sure that your application has been signed with the same key you registered with Facebook" it sounds like you have a key mismatch issue; the instructions on their site should help find some common problems. Also update your local code to use the latest SDK as Facebook is notorious for breaking older implementations.
The current Facebook iOS SDK only uses the application ID and Android is no different.

Related

How to Trace Mobile App Install for share app ID across Apps?

I've two apps sharing the same app ID for Andriod Facebook login, which i would like to advertise both apps in Facebook mobile app install using optimization for App Install and charged for App Install rather than Impression, but it seems that i can only fill in 1 bundle ID for that facebook apps, any solution for this?
You should not reuse the same Facebook app ID for a second app.
One of the reasons is exactly what you are describing: you can only specify a single Android package name per app.

Same facebook key for lite and pro apps

I have a lite and pro version of my Iphone app, but my lite app rejected by appstore ,they cannot login through facebook. But in development mode i can able to login both pro and lite version through FB.
I have used same FB developer key for both lite and pro.
Is this the issue for rejection?
If i need to use different developer key for lite and pro version of same app?
Thanks,
Please check this SO post. It may help you.
urlSchemeSuffix is a string of lowercase letters that is appended to the base URL scheme used for SSO. For example, if your facebook ID is "350685531728" and you set urlSchemeSuffix to "abcd", the Facebook app will expect your application to bind to the following URL scheme: "fb350685531728abcd". This is useful if your have multiple iOS applications that share a single Facebook application id (for example, if you have a free and a paid version on the same app) and you want to use SSO with both apps. Giving both apps different urlSchemeSuffix values will allow the Facebook app to disambiguate their URL schemes and always redirect the user back to the correct app, even if both the free and the app is installed on the device.
urlSchemeSuffix is supported on version 3.4.1 and above of the Facebook app. If the user has an older version of the Facebook app installed and your app uses urlSchemeSuffix parameter, the SDK will proceed as if the Facebook app isn't installed on the device and redirect the user to Safari.
You can also refer this so post which helps you to understand how prefix works with Facebook.

How to authenticate a person who has facebook but not the facebook app on iOS device?

I am creating an app on iOS and i came across a scenario if a person does not have the facebook app installed but has Facebook. how does the game app handle that. you can only play the game if and only if you have facebook account?
You can use Single Sign On in Facebook.
So that the facebook will authenticate its user through facebook app if its installed otherwise through the safari.
Here is the Link also here.
Happy coding :)
If you targeted the older versions (below ios6) use Graph API.
If you targeted for newer version (ios 6 and above) use the native method

facebook app doesn't auth for my app

I have a problem to connect facebook app with my app.
I don't know much about facebook sdk, so I simply copy & paste from the facebook sample app.
(i only need upload image with some text).
it works well unless facebook app is installed on the device, but if a device has facebook app, it seems like can't get the login information.
I think it is because of facebook app doesn't ask auth for my app unlike safari browser.
What do I have to do?
Please Download the latest version of Facebook app (4.1.1) from app store. The Single Sign On(SSO) only supports in the latest version of Facebook application.

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