HomeiOS Developmentswift - Tips on how to launch iOS Native Fb App from...

swift – Tips on how to launch iOS Native Fb App from my app with a public profile URL?


I’m creating an iOS app that should open a Fb person or web page profile on the Fb App (if put in) from my app. I’ve the general public profile URL of the person or web page, equivalent to https://www.fb.com/nirav.parmar.7169709. How can I take advantage of a customized URL scheme to launch the Fb App and present the profile? If the Fb App will not be put in, I wish to open the profile in Safari as an alternative.

I already tried this fashion nevertheless it’s not work for me:

  • fb://profile/nirav.parmar.7169709 (Not work)

  • fb://profile?username=nirav.parmar.7169709 (Not Work)

  • fb://profile/100004929307564 (labored – however the way to discover user_id from this url “https://www.fb.com/nirav.parmar.7169709”)

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments