Android Question Opening wrong facebook page in nativeapp

appie21

Active Member
Licensed User
Longtime User
Hello

I try to open the facebook app with a page (in this case B4a)

B4X:
Sub BtnFacebook_Click

    Dim fURI As String =  "https://www.facebook.com/b4xdev/"
   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


Everything look ok
But it open not the start page Where you can like of follow that page

See image

b2.jpg


As you can see it is not the startpage

like these

b1.jpg




How can i solve this?
 
Top