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



As you can see it is not the startpage

like these





How can i solve this?
 

appie21

Active Member
Licensed User
Longtime User
What do you mean?
in.Initialize(in.ACTION_VIEW, "fb://facewebmodal/f?href=" & fURI)
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…