How to open my Android application from Facebook

I have an Android app called Jamama. He plays sounds from my cloud. Its intent filter filters all URLs starting at http://jamama.com . When I post the Jamama URL to Facebook, and when the link is clicked from the FB application on the Android device, I would like it to open the application or go to the Google Play application to download it. I saw how it works with many applications (Soundcloud, CandyCrush, etc.). The difficulty is that FB wraps my URL as an argument to the FB URL.

Now I am studying the issue on the web. I saw similar questions in StackOverflow, but I never formulated the way I mean, and never with a helpful answer. So I take my chance again.

I created an FB application for which I defined the following:

  • Basic information (without namespace),
  • Facebook application with http [s]: //jamama.com/ as a URL. An Android application with the correct package, activity and key hashes (debugging and release), as well as Facebook and Deep Linking enabled.

And yet, clicking on the link that I send to my FB post still leads to the opening of the page in the browser, and not to the opening of my application.

I also heard about the API in the Android SDK for Android to open a special dialog for publishing stories. It may be nice, but I really need it to work with plain text. Right now I am sharing the text, and Android is opening the right choice for me to give me the opportunity to share it via Facebook, Google, mail, etc. This is what I want. I do not want to do special processing for each application for sharing.

I see that it works with many sites like YouTube, SoundCloud, MuseScore, etc. What am I missing, so will this work for me too?

thanks

Michael

+4
source share
2 answers

facebook Android, , , / , facebook ( , ).

, facebook ( facebook), facebook (, , " " ), URL- facebook ( "Free Sign Up" ), , url/string, Android.

, javaScript, facebook html ( JavaScript ), Android . , , , , .

1: Facebook Mobile 2: Facebook, CLICK 3: Html/javaScript - Android, ( /CLICK ) 4: Android Intent ( , )

, . , . .

0

- - AppLinks. AppLinks Facebook, ,

, ( android, , iOS)

, HTML

<head>
...
<meta property="al:android:url" content="sample://yourapp/deep_linking_uri">
<meta property="al:android:package" content="com.yourapp.package">
<meta property="al:android:app_name" content="NameOnTheStore">
...
</head>

Android URI,

<activity android:name=".MainActivity" android:label="@string/app_name" >
   ...
    <intent-filter>
      <action android:name="android.intent.action.VIEW" />
      <category android:name="android.intent.category.DEFAULT" />
      <data android:scheme="sample" />
   </intent-filter>
</activity>
0

All Articles