Swift open twitter profile with action button
Adding this command in to info.plist you can solve this problem.
LSApplicationQueriesSchemes
Can the iOS app open TikTok user profile?
The solution was found. If the app is installed on the phone and you try to launch a TikTok profile from
https://www.tiktok.com/@(username)
it will redirect you to the chosen profile in the app.
How to open twitter page in twitter app from my iphone app?
You are looking for the following url:
twitter:///user?screen_name=PAGE
Note that Twitter is not installed on all devices. You should check the result of openURL
method. If it fails, open the page in Safari with regular url.
How to open a Sina Weibo user profile?
I have found the answer:
let a = URL(string: "sinaweibo://userinfo?uid=12345678")!
UIApplication.shard.open(a, options: [ : ], comletionHandler: nil)
That's it.
Swift Open Facebook Profile by FacebookUID
Hi based on documentation Facebook ID is the App-scoped User ID so you can use like
fb://profile?app_scoped_user_id=%@
But also check bug report on https://developers.facebook.com/bugs/332195860270199 opening the Facebook profile with
fb://profile?app_scoped_user_id=%@
is not supported.
So you will have to open the Facebook profile within Safari or you can use in app webview to open user profile.
I have check with some facebook id 10000****889,10000***041 etc. all have open profile in facebook app.Yes some have same error.Page bot found.
May be there is Privacy setting->Do you want search engine outside link to your profile->No. restrict search.
To get ids of user from facebook Trick :
1)Right click on the person or page's profile photo, select properties and the ID will be included in the page
2)In mobile browswe if you open photo there is id E.g.
" fbid = *** & pid = 1000....89 " so 1000....89 will be your user id
How can I open a Twitter tweet using the native Twitter app on iOS?
This is how you access other apps from your own. Just find the proper url to send for accessing status. I've included a list that should have most of the important ones. Including status finding.
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"twitter://status?id=12345"]];
twitter://user?screen_name=lorenb
twitter://user?id=12345
twitter://status?id=12345
twitter://timeline
twitter://mentions
twitter://messages
twitter://list?screen_name=lorenb&slug=abcd
twitter://post?message=hello%20world
twitter://post?message=hello%20world&in_reply_to_status_id=12345
twitter://search?query=%23hashtag
Note: It can be important to make sure the user has twitter installed or this will cause a crash. So I recommend adding this in an if statement before you try to send them to twitter.
[[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:@"twitter://"]];
Related Topics
How Do Ruler Apps Stay Accurate on All Devices
How to Add Interactive Uilabels on Top of a Uiimageview
How to Calculate a Random Cgpoint Which Does Not Touch a Uiview
How to Access My Swift Classes from My UI Tests
Uitextfield Keyboard with Only Alphabet, No Numbers, No Caps, No Spacebar
Avmutablevideocomposition Output Video Shrinked
Convenience Initialization of Uinavigationcontroller Subclass Makes Subclass Constant Init Twice
My Uiviews Muck-Up When I Combine Uipangesturerecognizer and Autolayout
Use More Than One Firebase Database in Single App - Swift
Uitableview Inside Uitableviewcell with Dynamic Height
Get Latitude and Longitude Center of Google Map
Audiokit - How to Get Real Time Floatchanneldata from Microphone
What Are the First Two Columns in Scnmatrix4
Traverse View Controller Hierarchy in Swift
Start/Stop Image View Rotation Animations