Guest User

How To Open Facebook App On Android

a guest
Jan 9th, 2018
33
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 17.87 KB | None | 0 0
  1.  
  2.  
  3. ********************
  4. How To Open Facebook App On Android
  5. http://urlin.us/bzsb0
  6. (Copy & Paste link)
  7. ********************
  8.  
  9.  
  10.  
  11.  
  12.  
  13.  
  14.  
  15.  
  16.  
  17.  
  18.  
  19.  
  20.  
  21.  
  22.  
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51. –Vaiden Apr 21 '13 at 11:46 add a comment up vote 7 down vote try this code: String facebookUrl = " "; try { int versionCode = getPackageManager().getPackageInfo("com.facebook.katana", 0).versionCode; if (versionCode >= 3002850) { Uri uri = Uri.parse("fb://facewebmodal/f?href=" + facebookUrl); startActivity(new Intent(Intent.ACTIONVIEW, uri)); } else { Uri uri = Uri.parse("fb://page/ "); startActivity(new Intent(Intent.ACTIONVIEW, uri)); } } catch (PackageManager.NameNotFoundException e) { startActivity(new Intent(Intent.ACTIONVIEW, Uri.parse(facebookUrl))); } shareimprove this answer answered Jan 23 '15 at 7:44 Ravi Makvana 1,8931426 add a comment up vote 4 down vote My answer builds on top of the widely-accepted answer from joaomgcd. String facebookId = "fb://page/ "; String urlPage = " try { startActivity(new Intent(Intent.ACTIONVIEW, Uri.parse(facebookId ))); } catch (Exception e) { Log.e(TAG, "Application not intalled."); //Open url web page. You should use fb://facewebmodal/f?href= for newer versions. Forums are available to all registered TechRepublic members. Then start an intent as follows: Intent facebookIntent = new Intent(Intent.ACTIONVIEW); String facebookUrl = getFacebookPageURL(this); facebookIntent.setData(Uri.parse(facebookUrl)); startActivity(facebookIntent); shareimprove this answer answered Oct 25 '17 at 12:16 Bilal Ahmad 293 add a comment up vote 2 down vote Intent intent = null; try { getPackageManager().getPackageInfo("com.facebook.katana", 0); String url = " intent = new Intent(Intent.ACTIONVIEW, Uri.parse("fb://facewebmodal/f?href="+url)); } catch (Exception e) { // no Facebook app, revert to browser String url = " intent = new Intent(Intent.ACTIONVIEW); intent .setData(Uri.parse(url)); } this.startActivity(intent); shareimprove this answer answered Dec 15 '16 at 2:14 Tiger developer 13017 add a comment up vote 2 down vote Best answer I have found, it's working great. Might be something as simple as a typo.Search the site using the form below. –nheimann1 Oct 29 '12 at 9:49 Yes, the solution has stopped to work. How do I check into a nearby location?To check into a nearby location:Scroll to the top of your News Feed or Profile and click Whats on your mind? Click to select or search for a nearby location. more stack exchange communities company blog Tour Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Log In Sign Up . OOPS. asked 6 years, 11 months ago viewed 246,080 times active 2 months ago Blog Take the 2018 Developer Survey Get the weekly newsletter! In it, you'll get: The week's top questions and answers Important community announcements Questions that need answers see an example newsletter By subscribing, you agree to the privacy policy and terms of service. I discovered this after looking into how emails send by facebook opened the app. Just go to your page on Facebook in the browser, right click, and click on "View source code", then find the pageid attribute: you have to use pageid here in this line after the last back-slash: fb://page/pageID For example: Intent facebookAppIntent; try { facebookAppIntent = new Intent(Intent.ACTIONVIEW, Uri.parse("fb://page/1883727135173361")); startActivity(facebookAppIntent); } catch (ActivityNotFoundException e) { facebookAppIntent = new Intent(Intent.ACTIONVIEW, Uri.parse(" startActivity(facebookAppIntent); } shareimprove this answer edited Mar 27 '17 at 15:53 Fabio Turati 2,22851829 answered Mar 27 '17 at 15:16 Shahid 314 This only make sense for static apps. If the Facebook app is not installed then the * default web browser will be used. Get your id (the large number) from shareimprove this answer edited Jan 8 '14 at 14:31 Bjrn Marschollek 6,71583357 answered Jun 24 '13 at 23:04 John 7271021 I agree, this is better because it does not make any assumptions about the Facebook app package name or intent filters. To learn more about how we collect and use data, review our Data Policy.View Full Article Share ArticleWas this information helpful?YesNo. Keep in mind that this list doesnt include all of the Android permissions we request or all of our uses of those permissions. TechRepublic Forums Visit our forums to engage with your IT peers on the issues of the day here. The technical term for what we've got here is a404 Error.Basically, that means that the page you're looking for can't be found. See: facebook.com/help/217671661585622 [Title: How are Pages different from personal profiles?] –Murmel Mar 13 '15 at 8:28 for notes: intent = new Intent(Intent.ACTIONVIEW, Uri.parse("fb://note/" + facebookNoteId)); –voodoo98 Mar 14 '15 at 11:48 To find Id for public page, event, profile you can use FindMyFbId –Carlos Zerga Jan 27 '17 at 16:16 Profile is not opening up in Facebook App. You can adjust these notifications from your Android, iPhone or iPad settings:iOSTo adjust your mobile push notifications on your iPhone or iPad:Tap Tap Notifications > FacebookTap Allow Notifications to turn on notifications from Facebook. It depends what you want. Posting it here just to simplify and make the implementation reusable) "fb://page/ does not work with newer versions of the FB app. Privacy Policy Cookies Ad Choice Terms of Use Mobile User Agreement A ZDNet site Visit other CBS Interactive sites: Select SiteCBS CaresCBS FilmsCBS RadioCBS.comCBS InteractiveCBSNews.comCBSSports.comChowhoundClickerCNETCollege NetworkGameSpotLast.fmMaxPrepsMetacritic.comMoneywatchmySimonRadio.comSearch.comShopper.comShowtimeTech Pro ResearchTechRepublicThe InsiderTV.comUrbanBaby.comZDNet . Alison DeNisco Rayome January 9, 2018, 1:33 PM PST See more Mobility CES 2018: Qualcomm announces platforms to help bring Google Assistant to more households TechRepublic/ZDNet contributor Tonya Hall talks with TechRepublic's Bill Detwiler and ZDNet's Natalie Gagliordi about Qualcomm's announcements at CES 2018. Not the answer you're looking for? Browse other questions tagged android facebook url-scheme or ask your own question. Or, you can try finding it by using the search form below.SearchPages:App Scholarship About App Scholarship Heres how it works Submission Articles Avatar Best Android Phone to Upgrade from Samsung Galaxy S3 Bookmarks Connections Contact Us Disclaimer Holiday Price Guide Home JoyofAndroid Advertising SolutionComing Soon! Logout My Profile Edit Profile Login Register Privacy Terms of Service Would you give up your phone in exchange for your life? Categories: Accessories Apps Devices Samsung Editor's Pick Featured Games How to News Phones Reviews Tips Uncategorized Wallpaper Widget Authors:Arpit (1)Billa (589)Cathy (5)Dani (70)Danish (3)Delani (177)James (101)Joe (82)John (11)Joseph (2)Joshua (1)Judy (1)Marcie (2)Matt C (1)Maxx (1)Morgan (5)Pallab (1)Rakiah (2)Rashid (29)Sam (1)Strider (187)Taylor (7)Yasir (198)Monthly: January 2018 December 2017 November 2017 September 2017 August 2017 July 2017 June 2017 May 2017 April 2017 March 2017 February 2017 January 2017 December 2016 November 2016 October 2016 September 2016 August 2016 July 2016 June 2016 May 2016 April 2016 March 2016 February 2016 January 2016 December 2015 November 2015 October 2015 September 2015 August 2015 July 2015 June 2015 May 2015 April 2015 March 2015 February 2015 January 2015 December 2014 November 2014 October 2014 September 2014 August 2014 July 2014 June 2014 May 2014 April 2014 March 2014 February 2014 January 2014 December 2013 October 2013 September 2013 August 2013 July 2013 June 2013 April 2013 March 2013 January 2013 Recent Posts: Major New Features of Android Oreo Best on the Go Reading Apps for Android Best Nutrition Apps for Android Android Auto: 7 Questions and Answers 14 Android Auto Features, Tips, and Tricks Best Blogging Apps for Android 14 Android Oreo Features, Tips, and Tricks 23 Fixes for Not Registered on Network in T-Mobile and Samsung Phones Best Photoshop Alternatives on Android Best Video Game News Apps for Android Insufficient Storage Available on Android Fix Without Root 10 Best Speech to Text Apps for Writers 10 Best Folder Apps for Android 8 Best DirecTV Apps for Android 10 Best Games That Dont Need the Internet Best Android Phones for First Time Smartphone Users Best Apps to Get Instagram Followers on Android How to Use OK Google, Turn on Flashlight What Is the Baby Crying Detector on Samsung Phones? How to Fix the Facebook Authentication Failed Error 11 Best Family Locator Apps for Android The 4 Best Android Apps to Help You Paint Your Home 4 Best College Football Apps for Scoreboard, Radio, and Betting The 4 Best Android Mirror Cast Apps for Mirroring Your Device 10 Best Accessories to Charge Your Android Device Wirelessly Top 5 Best Auto Clicker Apps for Android Games to Download 4 Best Caller Name Announcer Apps to Download for Android 10 Best Face Swapper App for Android How to Troubleshoot Vizio Screen Mirroring on Android 25 Ways to Fix No SIM Card Detected Error on Android 5 Best Painting Apps for Android 5 Android Apps Similar to iMovies 15 Best and Free Go Locker Themes For Android Ok Google: Features, Uses, Problems and Troubleshooting 20 Methods to Fix Samsung Galaxy S8 Bluetooth Issues 20 Ways to Fix Camera Failed Warning on Samsung Galaxy Phones 15 Best and Free Go Launcher Themes and Wallpapers (Android) Top 10 Best Anonymous Texting App for Android How to Stream Video from Android to Xbox or PlayStation Why Does My Phone Say Mobile Network Not Available? Why Does my Wifi Keep Turning Off and On by Itself? 10 Best Analog Clock Widgets For Android 20 Ways To Go To My Settings on Android Phones How To Fix Mobile Network Not Available Problem on Android 3 Best Baby Crying Detector Apps on Android 5 Best WiFi Texting Apps for Android How to Charge your Phone Faster on Android 10 Best Date and Time Widgets for Android Why Fast Charging Apps dont Work on Android Phones? Text Message Background: Apps, Themes and Wallpaper Downloads 10 Best Paid Games for Android 5 Best CPU Benchmark Apps for Android 20 Free Christmas Live Wallpapers with HD, 3D or Music FoxFi Apps, Tips and Tricks When its Not Working How to Set Up the Peel Smart Remote 5 Best Samsung Wireless Charging Phone Stands What to expect from Android O How to Disable Auto Photo Sync and Backups on Android How to Find is Updates Available for My Apps on Android 28 Ways to Solve Android Widget Problems Android Features to Improve Your Commute How to Troubleshoot: Ok Google What Song is This? Command VPN by Private Internet Access App Review What is Tunnybrowser Folder on Android? 5 Best Wireless Chargers for Samsung Phone What is com.android.mms in Android Phones? Why Do Chrome and Other Browsers Reload Pages on Android? What is Odin Mode on Samsung Phones? How Does Wireless Charging Work? How to Fix com.android.mms Stopped Working Best Party Games for Android 5 Best WiFi Texting Apps on Android Phones How to Fix Fast Charging Issues with Samsung Phones How to Remove Phone Not Allowed MM#6 Error Best 5 Apps to Customize Your Android Devices Appearance How to Fix Samsung Wireless Chargers That Is Not Working 17 Security Tips for Smarter Smartphone Banking (Android) 5 Great Music Streaming Apps Youve Probably Never Used How Android Can Help Me Do My Taxes (10 Apps) How to Find Out Which Version of Android Youre Running Best Game Show Apps for Android How Android Can Help Me Do My Homework 20 Best of the Best VR Apps and Games Top 10 Best Cases for the Moto G4 and G4 Plus 5 Best Apps to Have In Case of an Emergency 5 Awesome Android Apps for Taking Care of your Pets 5 Top Notch Password Manager Android Apps to be Safe 5 Awesome Android Apps to Find an Apartment 9 Best Fertility Tracker Apps Anyone Can Use 5 Best Football Score Apps for Android Nokia 3 vs Nokia 5 vs Nokia 6: Comparison with Specifications How to Fix Common Problems with the Nokia 6 Android Devices to Replace Your Laptop How to Fix Common Problems with the Nokia 5 Best Android Watches 2017 How To Unlock Android Phone If You Forget the Password Or Pattern Lock How to Fix Problems the Nokia 3 Might Have Fixing Problems with Nexus 9 Best Android Call/Text Blockers Best Lock Screen Apps for Getting More Information on Your Phone Primary SidebarEmail Subscription Email* Email frequency* Daily Email Subscription Weekly Email Subscription This iframe contains the logic required to handle AJAX powered Gravity Forms. the page profile image and the Page / Activity / Insights tabs. Services About Us Membership Membership Newsletters RSS Feeds Site Map Site Help & Feedback FAQ Advertise Reprint Policy Explore Blogs Downloads TechRepublic Forums Meet the Team TechRepublic Academy Tech Pro Research Resource Library Photos Videos 2018 CBS Interactive. 110010100 Something went wrong on your end or ours. thank you. shareimprove this answer answered Jan 2 '16 at 9:25 AndroidMechanic 14.2k84479 awesome, thanks –Nick Kovalsky Oct 22 '17 at 18:55 add a comment up vote 8 down vote This has been reverse-engineered by Pierre87 on the FrAndroid forum, but I can't find anywhere official that describes it, so it's has to be treated as undocumented and liable to stop working at any moment: Intent intent = new Intent(Intent.ACTIONVIEW); intent.setClassName("com.facebook.katana", "com.facebook.katana.ProfileTabHostActivity"); intent.putExtra("extrauserid", "123456789l"); this.startActivity(intent); shareimprove this answer edited Mar 16 '12 at 16:03 Ahmad Kayyali 6,776124281 answered Jan 27 '11 at 8:13 Jon Colverson 2,01211617 It stopped working, this solution doesn't work anymore. Find some of our great content below. –Jared Rummler Jul 3 '14 at 19:32 1 DjHacktorReborn Just checked, working here. .. Any tips ? –Balaji Katika Feb 2 '17 at 17:44 add a comment up vote -1 down vote try { String[] parts = url.split("//www.facebook.com/profile.php?id="); getPackageManager().getPackageInfo("com.facebook.katana", 0); startActivity(new Intent (Intent.ACTIONVIEW, Uri.parse(String.format("fb://page/%s", parts[1].trim())))); } catch (Exception e) { startActivity(new Intent(Intent.ACTIONVIEW, Uri.parse(url))); } shareimprove this answer answered Sep 9 '17 at 17:56 John 113 add a comment up vote -2 down vote You can open the facebook app on button click as follows:- Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activitymain); this.findViewById(R.id.button1).setOnClickListener(new View.OnClickListener() { Override public void onClick(View v) { startNewActivity("com.facebook.katana"); } }); } public void startNewActivity( String packageName) { Intent intent = MainActivity.this.getPackageManager().getLaunchIntentForPackage(packageName); if (intent != null) { // we found the activity // now start the activity intent.addFlags(Intent.FLAGACTIVITYNEWTASK); startActivity(intent); } else { // bring user to the market // or let them choose an app? intent = new Intent(Intent.ACTIONVIEW); intent.addFlags(Intent.FLAGACTIVITYNEWTASK); intent.setData(Uri.parse("market://details?id="+packageName)); startActivity(intent); } } shareimprove this answer answered Feb 25 '14 at 11:49 Deepak Sharma 2,80723347 add a comment Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign up using Facebook Sign up using Email and Password Post as a guest Name Email Post as a guest Name Email discard By posting your answer, you agree to the privacy policy and terms of service. Learn more, including about available controls: Cookies Policy.FacebookJoin or Log Into Facebook Email or PhonePasswordForgot account?Log InDo you want to join Facebook?Sign UpSign UpThis page isn't availableThe link you followed may be broken, or the page may have been removed.Go back to the previous page Go to News Feed Visit our Help CenterEnglish (US)NederlandsFryskPolskiTrkeDeutschFranais (France)EspaolPortugus (Brasil)ItalianoSign UpLog InMessengerFacebook LiteMobileFind FriendsPeoplePagesPlacesGamesLocationsCelebritiesMarketplaceGroupsRecipesSportsLookMomentsInstagramLocalAboutCreate AdCreate PageDevelopersCareersPrivacyCookiesAd ChoicesTermsHelpSettingsActivity Log Facebook 2018. Copyright 2018. Search GO CXO Software Hardware Startups Microsoft More Cloud Data Centers Mobility Apple Google All Topics Sections: Photos Videos All Writers Newsletters Forums Resource Library Tech Pro Free Trial Editions: US United States Australia United Kingdom Japan Newsletters Forums Resource Library Tech Pro Free Trial Join TechRepublic Log In My Profile Preferences Community Newsletters Log Out Search GO Topics: CXO Software Hardware Startups Microsoft Cloud Data Centers Mobility Apple Google All Topics Sections: Photos Videos All Writers Newsletters Forums Resource Library Tech Pro Free Trial Editions: US United States Australia United Kingdom Japan My Profile Preferences Community Newsletters Log Out . Is there a chance to open a Facebook profile in the official Facebook app from code? android facebook url-scheme shareimprove this question asked Jan 26 '11 at 22:28 Bjrn Marschollek 6,71583357 1 There's a thread that doesn't have an answer on the facebook dev forums: forum.developers.facebook.net/viewtopic.php?pid=255227 (adding it here because it shows there's not an obvious answer, and maybe it'll get answered there someday.) –James Moore Sep 4 '11 at 17:45 add a comment 18 Answers 18 active oldest votes up vote 216 down vote accepted This works on the latest version: Go to ( for instance) Copy your id Use this method: public static Intent getOpenFacebookIntent(Context context) { try { context.getPackageManager().getPackageInfo("com.facebook.katana", 0); return new Intent(Intent.ACTIONVIEW, Uri.parse("fb://page/ ")); } catch (Exception e) { return new Intent(Intent.ACTIONVIEW, Uri.parse(" ")); } } This will open the Facebook app if the user has it installed 5a02188284
Add Comment
Please, Sign In to add comment