Open Facebook page in Native Facebook IOS App via simple URL Sheme issue
I believe I've found a solution... It works currently under facebook ios 5.0.1 for iPhone.. haven't tried it in iPad yet.
The url is fb://profile/132753734806
NOW the important part is that number. That links to one of my clients, Charles Scott. HOWEVER, that's not their FBID or Page ID.. their Page ID is 10150348920319807
so you would think it should be fb://profile/10150348920319807 but that gives me an error.
Here's how you get the correct code.. click on any of your page's photos.. here's an example for my client https://www.facebook.com/photo.php?fbid=10150348920319807&set=a.10150348920314807.356942.132753734806&type=1&theater
if you notice the FBID that does not work follows fbid= in that URL.. the number you WANT is just before the &type=1theater but following that last period. 132753734806 is the correct code to punch in after fb://profile/
I hope that makes some sense... I know zero about code or coding but this was bothering me so much and I knew there was a way.
Now, the two questions I would love to have answered/working.. 1. if this could work on android phones 2. create a working qr code for this url so people can scan with ios devices and have it open automatically
Good luck and I hope this helps everyone!
How to open facebook page in native iOS app
Following needs to be added in info.plist for above code to work.
<key>LSApplicationQueriesSchemes</key>
<array>
<string>fb</string>
</array>
Not able to launch native Facebook app
For iOS 9, You must whitelist the url's that your app will call out to using the LSApplicationQueriesSchemes
key in your Info.plist.
So add this code to your plist file:
<key>LSApplicationQueriesSchemes</key>
<array>
<string>fb</string>
<string>fbapi</string>
<string>fbauth2</string>
<string>fbshareextension</string>
<string>fb-messenger-api</string>
<string>twitter</string>
<string>whatsapp</string>
<string>wechat</string>
<string>line</string>
<string>instagram</string>
<string>kakaotalk</string>
<string>mqq</string>
<string>vk</string>
<string>comgooglemaps</string>
</array>
You can remove schemes you don't want to use too.
Hope this help!
Open Facebook Post in Facebook App From iPhone App
It's been asked many times here. And the answer is: it's not possible.
There are methods to do this on Android, but that is not officially supported. You should not rely on it. This is the same for iOS. Some links work, but they are unsupported, can change any time and for some items, such as posts, it's not possible at all.
Related Topics
React-Native, How to Get File-Asset Image Absolute Path
What Happens When Testflight App Expire
Converting String to Int With Swift
Remove HTML Tags from an Nsstring on the Iphone
How to Create a Uicolor from a Hex String
Uploading File With Parameters Using Alamofire
Nsdictionary With Ordered Keys
Difference Between Observedobject and Stateobject in Swiftui
How to Write a File to a Folder Located At Apple'S Files App in Swift
How to Get the Root Directory of My iOS App
Nsattributedstring Click Event in Uilabel Using Swift
How to Link to Apps on the App Store
How to Set Cornerradius For Only Top-Left and Top-Right Corner of a Uiview
How to Symbolicate Crash Log Xcode
Delete/Reset All Entries in Core Data
Background Location Services Not Working in iOS 7
Swift: How to Split Up a [String] Resulting in a [[String]] With a Given Subarray Size