Home > other >  Trouble Loading is shown when open FB page from Android application
Trouble Loading is shown when open FB page from Android application

Time:09-21

I can open FaceBook page in browser:

    startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("https://www.facebook.com/<page_name>")));

I can open my profile page in FB application:

    startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("fb://facewebmodal/f?href=http://www.facebook.com/<face_book_name>")));

But when I try to open the Facebook page (not personal, but page) in FB application:

    startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("fb://facewebmodal/f?href=http://www.facebook.com/<page_name>")));

I get "Trouble Loading": https://i.stack.imgur.com/3ytfJ.png

So, how can I open a Facebook page in Facebook app from my application on Android?

CodePudding user response:

I've found the solution: use page ID instead of page name. For example, the needed page is https://www.facebook.com/suspilne.news, so I should use https://www.facebook.com/148182332275963 instead.

I've found this id when open the page in browser on Android.

  • Related