Is there anyway to open a facebook URL in the facebook app of a phone? [duplicate] - iphone

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
launch facebook app from other app
I was wondering if there is anyway I could put a facebook link into a webpage, and, if a facebook app is installed, to get the link to facebook open in the fb app instead of the broswer?

The facebook application link starts with fb://, (according to this site), for the iPhone. So in theory clicking a link that starts with fb:// would launch the facebook app.
The problem is that the web browser application (Safari, or some custom app) decides how to handle that link, and it won't necessarily try to open another app unless it is preprogrammed to do so. If you're planning to put this on a web page, for example, and browse to it from an iPhone, there's no guarantee it will work. Better off putting two links I believe.
Not sure if the same is true for Android.

If you are showing the webpage in a Web View you can intercept the link procedure in its delegate. When a link is pressed, the message is sent to the delegate to check if the request should proceed. If you detect that it is a facebook link, you can alter it to use the fb scheme and open it with UIApplication's openURL:. To check if there is an application that can handle the fb: link you can call canOpenURL:, also of UIApplication.

Facebook applications for handheld devices aren't standard. They mostly use the API and I don't believe any application would provide you a way to open an URL.

Related

Opening up specific posts inside Facebook app?

There doesn't seem to be a clear answer on whether its possible to open up a specific Facebook post (from a page) inside the app when clicking to it from outside the app.
Like if I link to https://www.facebook.com/facebook/photos/pcb.10158175689716729/10158175682471729/
I want it to open up in the app (on IOS and Android).
But it doesn't, it just opens up the page for Facebook.
Is there a specific way to format the link so it does?

Opening Another Application From My App

this is my first question on the site so if i don't cover anything please let me know and i'll try and fix it :P
I'm trying to make my application load another app from inside the app. An example which i can use to make what I'm trying to do more clear is, I want to load FaceBook from my application without it loading a UIWebView. I would like to do this for Facebook, YouTube, Twitter & Instagram. Also if possible all going to specific areas on the site, so the Facebook profile, YouTube channel, Twitter Page & Instagram profile!
Also I know i would have to write an if statement for it to be, if the user has set application on their device then load in that application else if they don't then load in the web view
You want to use the URL schemes of the other apps. If you know the URL scheme of an app then you can use openUrl: to send a message to another application and bring it to the foreground.
After a quick search you can find some popular app url schemes here along with some examples.
You need to use URL Schemes, this wiki has the major ones listed
http://wiki.akosma.com/IPhone_URL_Schemes

windows phone 8: open facebook page in app from code

I need to launch the WP8 facebook app on a certain page, from my code behind, and if the app is not installed open the browser on that page:
right now i'm doing this:
var success = await Windows.System.Launcher.LaunchUriAsync(new Uri("fb://page/313689422066566"));
and I use success to try open the browser.
the app launches but it show my wall instead of the page, and if the app is not installet the phone ask me to search on the store in search of an app...
anyone can tell how to do this or where i can find some info?
thanks
Hey actually there's an undocumented (I found this by trial and error starting from this question) way to do this.
Launcher.LaunchUriAsync(new Uri("fb:pages?id=YOUR_PAGE_ID"));
What you're asking to do is not possible.
First, I don't believe it's possible to open the Facebook app to a specific page. I know you can use the fb: URI scheme to open the app and can even use fb:post?text=foo to start a new post, but I don't believe you can open a page.
Even if you could, the way URI schemes work in Windows Phone is that if the URI scheme is registered, it opens the app. If it's not registered, it asks you to install the app from the store. There's no way to send them to a web site instead that I know of.

On Facebook is it possible to force an app to display as a page tab?

I have a Facebook app the currently consists of 3 elements - an App on Facebook, Mobile Web, and a Page Tab.
Currently if I use the app URL it detects whether I am on a mobile or not and directs me to either the app on Facebook or the mobile web site.
What I'd like it to do is always show the app in the context of the page tab. Is there anyway to force this?
I tried looking at whether I could use the page tab URL directly and have that redirect to the mobile but depending on how I've linked it either returns a 404 or just takes you to the Facebook page. I appreciate I could do my own mobile detection but I thought I'd check if I'm missing something in Facebook first.
I wrote an explanation of how to do this here: https://stackoverflow.com/questions/14434072/create-facebook-page-tab-and-publish-template-on-it/14455665#14455665
Hope this is what you are after!

Open IOS Application which uses sharekit via fbconnect and/or sharekit from facebook app or facebook website

Does anyone of you know if it is possible to open a App which uses sharekit from a Facebook request by clicking on the request either in the facebook app, or in the browser?
I could not find anything about this in the web.
To be more precise i want my app which uses sharekit to send a request to a facebook-friend. This facebook friend should then be able to open the same app by clicking on the request either in the facebook app on his mobile device or by clicking on the request on the facebook browser page which is opened on his mobile device.
I already know how to share things in facebook via sharekit, but to get it "the other way round" seems to be difficult. I could not find anything helpful in the web so far.
Greets and many thanks in advance,
Maverick1st
Yes. Your will will need to register itself as a protocol handler, and the link clicked on from Facebook app would need to use the url scheme you define.
Example:
my-social-app://invite/1234
Keep in mind if the recipient does not have the app installed, or they do this on their desktop machine, they will get a message that the phone is unable to open that URL.
See this tutorial: http://mobileorchard.com/apple-approved-iphone-inter-process-communication/