Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7857245
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T20:58:47+00:00 2026-06-02T20:58:47+00:00

How can I start an intent to open a Facebook application on a phone

  • 0

How can I start an intent to open a Facebook application on a phone and navigate to the prefered page in Facebook?

I tried:

Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setClassName("com.facebook.katana", "com.facebook.katana.ProfileTabHostActivity");
intent.putExtra("extra_user_id", "123456789l");
this.startActivity(intent);

Well, whatever I write to “1234567891”, it is always navigating to my page. Always to me and not else.

How could I do this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T20:58:50+00:00Added an answer on June 2, 2026 at 8:58 pm

    I had the exactly same problem, sent the user id but for some reason, my profile always opened instead of the friend’s profile.

    The problem is that if you pass the String of the Long object that represents the Facebook UID, or even a long primitive type, the intent won’t be able to read it later. You need to pass a real Long.

    So the complete code is:

        Intent intent = new Intent(Intent.ACTION_VIEW);
        intent.setClassName("com.facebook.katana", "com.facebook.katana.ProfileTabHostActivity");
        Long uid = new Long("123456789");
        intent.putExtra("extra_user_id", uid);
        startActivity(intent);
    

    Ok enjoy and hope this helps 🙂

    Maxim

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to start an intent to start Facebook with some extras. How can
How can I start a new application on Android? I have done a new
I know you can start an intent to open google maps with latitude and
I know that we can start new activity with the steps as follows :
I have an application that the user can start in two different ways, as
We're working on a Backbone.js application and the fact that we can start a
An application that uses Flask framework, can start the built-in werkzeug development server simply
WARN/ActivityManager(157): Unable to start service Intent { act=com.google.android.c2dm.intent.REGISTER pkg=com.google.android.gsf (has extras) }: not found
I was wondering if I can start an Intent for viewing a directory with
I have written a mapping application which can either use Google Maps or Open

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.