Open my app from facebook app - ios

I have an application on IOS, which posts photos and location on facebook.
I want my app to open once user tap on link(When viewing facebook from facebook app). Is this possible?

It's not possible using the built in iOS sharing but Facebook will open your app if you are using their SDK and posting with a Facebook app. (as in an app setup in their developer portal) You need to have deep linking turned on and your app profile setup to point back to your app store id. They also have a new app links thing they announced which is worth checking out. In any case your app will have to support custom URL schemes.

Sorry I can not get clearly but if I am not wrong then do you want to open your iOS app when user click on link on FB ?
If I am right then simple and sort answer, it is not possible because apple iOS dose not provide any such types of feature/API so it is better to stop fighting.

Related

Firebase dynamicLinks: Do i need an app on the store for my link to work correctly?

I created a dynamic link on firebase dynamics like in their tutorial here
https://firebase.google.com/docs/dynamic-links/ios/receive
using an app ID (WhatsApp) which is not mine because not yet on App Store.
When i click on it (in Notes or Mail), it goes to Safari and ask if i want to open WhatsApp in AppStore.
When i come back to my app, i don't receive any link.
Do i need to publish my app to the appstore before it works?
You do not need to publish your App in AppStore in order to test the Firebase Dynamic Links.
Did you followed steps here https://firebase.google.com/docs/dynamic-links/ios/receive regarding Set up Firebase and the Dynamic Links SDK and Open Dynamic Links in your app?
Is your App receiving any link in UIApplicationDelegate's openURL: method? Can you reproduce the issue with quick-start App https://github.com/firebase/quickstart-ios/tree/master/dynamiclinks ?

Deep linking to iOS app through Facebook share

Currently is it possible to do a deep link on a Facebook share post? Here is the use case I'm trying to implement:
I go to a post on my website: http://www.helloworld.com/share-this-post.html and use FB share to share the link.
I open the iOS Facebook app on my phone and click on the link I just shared.
Then if I have the native HelloWorld iOS app installed on my phone, Facebook will open up my native app instead of opening the link in a webview. Else it will take me to the app store to download my native app.
Thanks!
I think the basic idea here is a URL Scheme that you need to create. When a user does the actions necessary to open your app send them to this URL -> which opens your app or takes them to the app store to purchase your app.
Do a quick google search on how to create a URL scheme, its quite simple.
Does this answer your question?

Custom URL scheme for new Facebook iOS app

Does anyone know what the custom URL scheme is to open a Facebook page in their new iOS app. I was using fb://page/PAGE_ID however this doesn't seem to be working in the recently updated Facebook iOS app, it just opens the app but doesn't go to the required page.
I got this answer at developer.facebook.com:
Replace the word page with profile and it will work. Your new statement will be:
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:#"fb://profile/247377102029332"]];
Use https://graph.facebook.com/YOUR_USERNAME to get your page ID.
In your iOS app use: fb://profile/[your ID] and the facebook app will open to your page.
The URL scheme for the iOS Facebook application is:
fb://profile/(fbid)
Same problem here. fb://page/PAGE_ID is not working anymore.
Note that fb://profile/(fbid) wasn't working properly on Facebook 4.x returning a "corrupted" page in both iPad and iPhone. Instead, fb://profile/(fbid)/wall in Facebook 4.x worked well when using an iPad but didn't work with an iPhone.
fb://page/PAGE_ID was the only option that worked on both iPhone and iPad, based on my experience.
I used to use http://wiki.akosma.com/IPhone_URL_Schemes as reference, but it's currently down...
A custom URL scheme is a mechanism through which third-party apps can communicate with each other. It doesn't allow you the provision to open a page in that particular application. It just fires an event to bring the called Application to the foreground. Going through this documentation would further clear your doubts.
The new Facebook app is built using Objective-C as against previous once in HTML5 which used to support URL scheme mechanism. This link gives a hint on that.
http://techcrunch.com/2012/08/23/facebook-for-ios-faster/

Users getting redirected to ios app when deep linking is turned off

Deep linking is turned off for our app
But when ios users click a link we posted on our facebook page to our page app (https://apps.facebook.com/nakedwines/), they are redirected to the ios app instead of our competition page.
If an ios user enters the link manually into their browser, this works.
Is this a bug or is there something not set up right?
Your issue is that when mobile users try to access your app they're brought to the app store (when the app isn't installed) ? That's expected, if the app was installed it would be opened directly.
If you don't have an IOS app, remove the IOS details from the app settings and they'll be brought to your mobile web URL instead.
The Deep linking setting allows users who click posts from your app to be brought into the app with sufficient context to allow your app to display a specific piece of content.
i.e links to your app's content are passed through to the native app with the full URL, and your app can open that content directly.
For example, clicking a link to a spotify song on iOS opens the spotify app and plays that song, without deep linking it just opens spotify with no context.
I ended up creating a completely new facebook app for the competition page. This got round all of the issues. Facebook doesn't seem to play well if you have both a page app and ios/android apps under the same application.

How can I Open Facebook from other app which is Installed & logged in Facebook App

I have seen an iPhone app Path and Installed in Device and in this app I have seen Facebook functionality means I have installed Facebook App and successfully logged in this app and now How can I open my profile,feeds,friend list and other functionality from my demo app so please give me idea how can I develop this functionality.
Any application can register a custom URL scheme, and when your app opens that URL, IOS will switch to the application that has registered that URL scheme. The Facebook app has registered such a scheme, with apparently quite some capabilities. See wiki.akosma.com.
However, I don't think that you can switch back to your app after that. So, if you just want to fetch some Facebook information, then you are probably better off using the Facebook web interfaces. You don't need to have the Facebook app installed at all when doing that.

Resources