Adobe AIR for Android - Open native facebook app - android

So I've been trying to figure out a way to open the native android facebook app from my Adobe AIR game but couldn't find a solution yet.
Basically I am interesting in letting my users open my game's facebook page and be able to click the like button.
My current solution is to open a webview but that is not good enough because users will have to enter their facebook login details.
So I just need them to open my game's page directly in their facebook app without needing to enter login details in a webview.
Is there a solution for this?

I think you can use navigateToURL(new URLRequest("fb://profile/your_page_id"));
You can get your page id by going to your Facebook page and pressing the Edit Page button. It will be in the browser url bar. E.g. https://www.facebook.com/pages/edit/?id=261615207268847&tab=public
The id is 261615207268847 so navigateToURL(new URLRequest("fb://profile/261615207268847"));

Related

Where do Google plus and twitter app open links on Android

When you click on a link in Twitter app or Google+ app on android, it opens in a chrome webview. Attaching a image. I dont know what its called and where can I find information about it and basic example.
it is called Chrome Custom Tabs.Check the link below customtabs

Facebook share button on android issue

I have a web page that contains a Facebook share button.
The link it shares is in following format:
www.example.com/index?id=1234&info=56789
This link is shared using Facebook plugin share button. On desktop browsers it works fine but on Android (chrome browser), when clicking the share button , the Facebook app is opened and only "www.example.com/index?id=1234" part of the link is sent to the app for sharing.
I replaced the "&" with "%26" and it fixed it, but it breaks when sharing using on desktop.
Did any one had the same problem and know the solution for this?

How to get the pages created by user after login and share some text on those with Android sdk

actually I'm not posting a bug but I have question with current sdk (android).
is it possible to get all the pages which are crated by the user after Login to Facebook and I want to share some text on the page which I select ?
I mean is there any other way to do this thing in android? like with Graph API, or with SDK?

How to open native Facebook app and determine the text a user should/could post

I know from here that when I put a fb://... link on my website it opens the native Facebook App (on iPhone and even on Android).
But how is it possible to put some parameters to this link? I want to make a share button, with a text/title/image. The user should be able to review it, but when he is lazy he should also be able just to press "Post it".
EDIT: My App is an webapp, it is just reachable through the browser (PC or mobile) or through an WebView of a native app (iPhone, WindowsPhone, Android).
You should use the native share dialogs with the Facebook SDK.
https://developers.facebook.com/blog/post/2013/07/11/four-reasons-to-upgrade-to-the-new-share-dialog-for-ios/
Here's the iOS documentation: https://developers.facebook.com/docs/ios/share-dialog/
Here's the Android documentation: https://developers.facebook.com/docs/android/share-dialog/

How to call android application from web browser

I want to call android application on clicking of button on some website from mobile.
Suppose I am opening one url on android browser and I want to call my application on clicking on button provided by that site. How to do that??
Suppose we are using browser other than Chrome then is it allowing??
If you link to your application as "myapp://foo/bar", can't you use some sort of intent filter to start your application.
I mean, if you press a youtube link in the browser it asks if you want to complete the action with the YouTube app or the browser.
I have seen similar examples regarding Google Maps links (which would open in either browser, google maps(?) or GeoBeagle).
Please take a look at the WebViewDemo. Javascript code in the web page can call into your Activity. As well as the other way around.
You cannot... if the site is being browsed in the default browser (Chrome).
If you already have an application that embeds the WebView, then you can do some bit of handling of - mouse clicks, window alerts, navigation etc. Otherwise, not!

Categories

Resources