I've got code working that opens the Facebook app to a specific page when a button is clicked. This one particular page Im opening is a business site and contains both the 'posts' and 'visitor posts' subsections. I can manually navigate to these sections in the facebook app after tapping the button in my app, but I'm hoping theres a way to have the facebook app open the 'posts' or 'visitor posts' section automatically.
This is the code that works to open the Facebook app to the page:
@IBAction func openFBPage(_ sender: Any) {
if let url = URL(string: "fb://profile/157299717658"){ ...
If I try something like this to get to the 'posts' subsection, the Facebook app still opens but goes to the users timeline instead of the business page:
@IBAction func openFBPage(_ sender: Any) {
if let url = URL(string: "fb://profile/157299717658/posts"){ ...