Android Question Error Sharing Link to Facebook

porvenir

New Member
Licensed User
Longtime User
Hello.

I publish my first App in Google Play and everything was OK. But I create a button to link the app in Facebook, but get me error, specifically: Not Found play.google.com (see image Error Link)

The code to share the link is:


B4X:
     Dim Url As String
     Url = "https://play.google.com/store/apps/details?id=com.androidcrc.practicaCosevi"
             
     Dim i As Intent
     i.Initialize(i.ACTION_VIEW, "http://m.facebook.com/sharer.php?u=" & Url)
     i.SetType("text/plain")
     i.PutExtra("android.intent.extra.TEXT", Url)
     i.WrapAsIntentChooser("Open Browser")
     StartActivity(i)

Note the url to share is https://play.google.com/store/apps/details?id=com.androidcrc.practicaCosevi and is valid.

But with the same code, I only change the url for example https://play.google.com/store/apps/details?id=com.picsart.studio, the link is sharing successful (See image Success Link)

B4X:
     Dim Url As String
     Url = "https://play.google.com/store/apps/details?id=com.picsart.studio"
             
     Dim i As Intent
     i.Initialize(i.ACTION_VIEW, "http://m.facebook.com/sharer.php?u=" & Url)
     i.SetType("text/plain")
     i.PutExtra("android.intent.extra.TEXT", Url)
     i.WrapAsIntentChooser("Open Browser")
     StartActivity(i)

If I try with any app link, that work's, but no with the link of my App.

In this case I suppose the problem isn't in the code, is another cause, but can't find it. :(

Error Link
Error Link.jpg


Success Link
Success Link.jpg


Thank's in advance
 
Top