Post/share to iOS/Android/WP Facebook/Twitter application from web page - android

I would like the ability to share content/page URL to a mobile's native application from a webpage. At the moment very few mobile users appear to be signed into Facebook/Twitter through the website URL, but rather through the native application. This obviously creates a problem that I can't find a real solution for.
Facebook
<a href="twitter://>Twitter</a>
http://jsfiddle.net/yyqj7u6L/
Both these links open the native app on Facebook & Twitter (if installed), but don't appear to have the functionality to post a status/share content without manually typing in.
I have checked the documentation here
http://wiki.akosma.com/IPhone_URL_Schemes#Facebook
With no luck.
My other thought about this problem is to target the share ability built into most mobile browsers, for example on Chrome I have the option to share via Facebook and so on. Although very little seems to be available about launching this feature from within a web page? I guess there is some security issues with this.
I did have a good look on here to find similar solutions but nothing quite hit the spot, related directly to sharing to native app from web page.

The code below should work for Twitter.
Share to Twitter

Related

CSS not loading in Facebook's embedded, in-app browser on mobile devices

For whatever reason, after changing my client's site to HTTPS, all of their links display without CSS when viewed through Facebook's embedded browser. This is also the case with links on their Instagram story and I suspect they use the same technology.
This is ONLY an issue with Facebook / Instagram's native browser. I've debugged this in react's webview and every mobile browser I could think of and the site works perfectly fine.
There are no mixed content errors either.
I know Facebook doesn't have support (oh joy), but it sure would be nice to get some help with this.
Steps to replicate:
Go to Rapzilla.com's Facebook page on your mobile Facebook app.
Click any link back to the website.
See that site loads without CSS.

Is there a universal URI scheme for Facebook app, that works across all mobile devices?

I'm trying to send marketing emails to users. The email design is responsive and will be opened on mobiles as well as desktops.
I want to put a link to my company's facebook page at the bottom of the email, and I want this link to behave differently on mobiles vs on desktops.
On mobile, the link should take the user to the facebook page within the facebook app, while on desktop it should take the user to the facebook page within the browser itself.
Our facebook page is https://www.facebook.com/gallerifive
So far I know this:
On iPhones, the URI fb://profile/1489743204605638 takes the user to galleri5 page within FB app (as required). On Android phones it throws an error.
On iPhones, the URI fb://page/1489743204605638 takes the user to Facebook app, and before anything can load, the FB app crashes! On Android phones, it opens up galleri5 page in the FB app (as required)
I know I can redirect Android and iPhone users differently based on their platform - but it sounds a bit strange that there is no universal URI scheme for Facebook that works on all mobile devices. Does anyone know more about this?
This is an old question, but as I encounter a good number of people asking it still I figured I should post something.
This is functionality that could be created, but only Facebook is in a position to build it.
For such links to work on iOS, for example, they would have to function as Universal Links. This would require configuration within the Facebook app and Facebook would need to host an AASA file. You can read more about this here: https://blog.branch.io/how-to-setup-universal-links-to-deep-link-on-apple-ios-9/.

Android Facebook sharing with deep links

I am currently sharing a link in my Android app by creating a chooser with an ACTION_SEND-Intent. I now want to add deep linking to the posts which already works with links from our iOS app into the Android app but not from links shared with the Android app. I think the reason is that by using an Intent, the app that actually posts the share is the Facebook app and not my own app.
So I probably have to use FacebookDialog to get this working, right?
If this is so, can I somehow still get the chooser? I still want the user to be able to select the service to share with.
I also know about App Links, does anyone know if using this would also solve the issue? Can links via App Links be referenced to the right app although they were shared with the Standard Facebook app?
The Facebook App Links documentation does not say much about sharing content from the app, only how to link from a website.
Since there's no app attribution available from a standard ACTION_SEND intent, Facebook will not know how to deep link into your app.
Using FacebookDialogs will give you app attribution, but will not address the chooser issue.
Using App Links is your best bet. It will tell Facebook how to deep link into your app (Facebook will scrape any link that is shared, so it will know about your App Links), and is a completely server side change, so you don't need to change any of your client code at all (assuming your client code already supports deep linking).

Can you take the Facebook login connection on iOS/Android App and automatically log a user in when they hit Facebook on a mobile browser? [duplicate]

It's my first posting on here (although I've been using this site for reference for quite some time).
I've been trying for several days now to find or dream up a way to use Facebook's "Single Sign On" from within a mobile web app (not a native iOS or Android app) to automatically sign a user into a web app if they are already logged into Facebook from the native Facebook app on their mobile device for example.
My limited knowledge is telling me that it can't be done since the mobile browser and the 'system' (iOS for example) are too separated (I can't, I don't think, have my mobile web app use or access the native Facebook app on a mobile device in any way).
I have found and read the iOS, Android AND Mobile documentation provided by Facebook (https://developers.facebook.com/docs/guides/mobile/) which all seems to make enough sense, but after days of trawling through everything else I could find on the subject there doesn't seem to be a way to use, for example, the Facebook app on an iPhone or Android device to automatically log a user in to my web app if he/she is already logged into Facebook.
I've read lots about doing this from within 3rd party native apps and also other people trying to achieve a similar thing from within Desktop apps but I'm trying and hoping to be able to achieve this from a web app running within a mobile web browser.
I'd be very grateful for any help, opinions or pointers in the right direction since I think this would be an excellent step forward in UI for mobile web apps to have (not just the native apps).
Many thanks in advance...
Probably a bit late to the party but in case anyone else is wondering yes it's possible with Cordova/Phonegap and the Facebook Connect Plugin: https://github.com/davejohnson/phonegap-plugin-facebook-connect/
Using the FB.getLoginStatus() method at startup allows to check if the user is already signed in with the native Facebook App and retrieve its profile. More details in the examples provided in the repo.
I have not yet implemented it myself, but seems possible according to:
http://developers.facebook.com/docs/mobile/web/build/#login

My Facebook App also works inside iOS/android apps?

Can a custom FB web app be used inside the iOS / android FB apps? Docs are not very clear on that. You can create Bookmarks for native apps, but I want to have a bookmark pointing to our custom FB web app canvas. The goal is to develop an app that's usable on all platforms.
I've been making some test and I could'n execute a non native app from facebook app or web page, and it's not easy to load facebook web page in PC mode from a mobile device.
The official Facebook documentation for iOS says:
When a user does a search in the Facebook app your app will be visible if it passes a usage threshold. The search results will display apps that have been configured for SSO support. When the user selects your app from the search results they will be directed to your app. If the user had previously authorized your app they will be authenticated when your app is launched.
I guess that for Android will be pretty like this. So if you develop a native app that only shows a WebView pointint to your web (pretty simple by the way in iOS and android) must work with no problems.
Usually Facebook APPs are on Flash, so I don't think that it will work on iOS (Please correct me if I'm wrong with the Flash issue).
On Android, it would be extremely easy, having in mind it works with Flash with 0 problems. You'd just have to implement a WebView on your layout and point to the url of your facebook app.
In general, you can really create applications that work on both systems, iOS and Android, playing with the webView's. However, you have to know that they will never work as if they were written on native code in terms of performance.
From what I've seen, if a developer already has an existing mobile version of their app which is also on Facebook, they are able to create a tab for it that will appear on Facebook for iOS and Facebook for Android. I don't think you can create a bookmark to the webapp version to be seen on a mobile phone. Users can of course bookmark your webapp on their browsers, though.

Categories

Resources