I want to open a facebook page with button on the exit of my application
B4X:
Dim fURI As String
Dim FacebookPage As Intent
fURI = "https://www.facebook.com/agronote/"
FacebookPage.Initialize(FacebookPage.ACTION_VIEW,fURI)
StartActivity (FacebookPage)
When i run that the programm opens the brower, how i can open the user facebook application instead?
Sub Activity_Click
Dim fURI As String = "https://www.facebook.com/agronote/"
Dim in As Intent
in.Initialize(in.ACTION_VIEW, "fb://facewebmodal/f?href=" & fURI)
Try
StartActivity(in)
Catch
Log(LastException)
Dim FacebookPage As Intent
FacebookPage.Initialize(FacebookPage.ACTION_VIEW,fURI)
StartActivity (FacebookPage)
End Try
End Sub
It open the app but it is not the main screen of the facebookpage (where you can like it anf follow it (is looks like it show one of the last post of that page)