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

  • SEARCH
  • Home
  • 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 7081669
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T06:56:58+00:00 2026-05-28T06:56:58+00:00

In my Android app, I log in using the Facebook SDK and display posts

  • 0

In my Android app, I log in using the Facebook SDK and display posts from the users’ newsfeed. I want to give them the option to comment or like a post, but I don’t want to implement that. So, my solution is to allow the user to click on the post, which will then load the post page in either the official Facebook App, or just the mobile facebook website. Either way is fine for me.

I googled around and was not able to find a suitable way to deliver an intent to launch the Facebook app to a specific post page. So, I decided to try to launch the browser and navigate to the mobile Facebook website to the specific post. I build the url string using information about the current user, the id of the post, and the id of the friend it belongs to. This url is exactly the same url I see when I browse to the page in my browser from my newsfeed. Like so:

                String url = "http://m.facebook.com/#!/story.php?story_fbid=" + postId + "&id=" + friendId + "&_user=" + FBHelper.getCurrentUserId();
                Uri uri = Uri.parse(url);

                Intent intent = new Intent(Intent.ACTION_VIEW, uri);

                startActivity(intent);

However, when the browser loads, I get a page that says “Sorry, something went wrong. We’re working on getting this fixed as soon as we can.” I have tried both touch.facebook.com and m.facebook.com.

I am looking for any solution that will either allow me to open the mobile site to the chosen post, or to launch the Facebook app to the chosen post activity.

  • 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-05-28T06:56:59+00:00Added an answer on May 28, 2026 at 6:56 am

    I just figured this out. It turns out that the post id that I got from the json result of a newsfeed request to the graph api has extra information. The post id that I got from the newsfeed result is in the form “friendid_postid.” In the link, however, the “story_fbid” tag should be set to just the postid portion. Then it works!

    This is the code I used:

                String postId = idTextView.getText().toString();
                postId = postId.substring(postId.indexOf("_") + 1, postId.length());
                String friendId = friendIdTextView.getText().toString();
    
    
                String url = "http://m.facebook.com/#!/story.php?story_fbid=" + postId + "&id=" + friendId + "&_user=" + FBHelper.getCurrentUserId();
                Uri uri = Uri.parse(url);
    
                Intent intent = new Intent(Intent.ACTION_VIEW, uri);
    
                startActivity(intent);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an android app that posts to users wall by using the Facebook
I am developing an application which is using facebook sdk for android to log
I am using the official Facebook SDK for Android in my app. I have
I have an app in android where I'm returning some pictures from facebook pages.I
I'm working on an Android App using the Android SDK for Eclipse as well
I want to send multipart form in my android app but without using org.apache.http.entity.mime
I'm trying to make an app for android using facebook's SSO, so first i
I want my android app to get data from an online database. Here are
I'm building an Android app and I want to copy the text value of
We have an Android app and a Web Service. We want to download part

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.