I want to share a content with an image, an url of my app on store and a caption of image.
I tried to using SLComposeViewController, but it not working on iOS 8.
I tried to using FaceBook share link, but it need an image url.
How can I share image + url + text without any server to store image?
Thanks all!
Due to FB policy is not possible to autofill the text of a share sheet using SLComposeViewController or UIActivityViewController. It seems to be still possible to share a link.
The behavior seems to be different if you have the official FB app installed:
If it is installed you can't add text
If not you can
The only solution seems to implement the official library, is really a pity!!
Related
is there any way to share image to instagram feed directly. I can Only Share image using default share functionality i m using swift 5 and xcode 11
it is not possible to post images/video to the Instagram app directly. Instead you can pass the image/video to the app and follow the process of manually posting to Instagram normally, there is another catch as well you cannot pass the title (caption) either you would have to copy the text to clipboard and on the final process of posting you can paste that text from clipboard.
I am trying to share image with some text and a url from my app to Instagram which would later redirect to iOS app installed on the phone from Instagram app. I am able to share image on instagram but not with text and url. Any help related to the same would be great!
A Bit Late To Answer (Aug, 2022)
I have successfully cracked the plain text sharing on Instagram by myself, after doing a lot of research on google on this topic. You can use the mentioned deep link to open Instagram Direct with some text to share from your application,
instagram://sharesheet?text={AnyTextOrLinkToShare}
Moreover, the below code should work on iOS to launch Instagram Direct (Messenger) from your app with some content
if let url = URL(string: "instagram://sharesheet?text=https://google.com/") {
UIApplication.shared.open(url, options: [:], completionHandler: nil)
}
Not sure, why did they hide this information from their official documentation but now who cares, I have achieved it with the continuous efforts of 16-18 hrs! :)
Instagram had removed pushing custom captions to their app while sharing photos at one point, check this post.
I also understand, according to the Instagram iPhone Hooks page, that you can pass a photo only to the "Select A Filter" Instagram screen, which is before you set a caption. I'm sorry, but I don't think Instagram supports custom captions.
Looks like there is not official way to share image/sticker together with a text/link to Instagram - because "com.instagram.sharedSticker.contentURL" parameter bacame unavailable or private.
But there is one workaround how to proceed working with image/sticker & text/url consequentially described here: https://stackoverflow.com/a/74241318/20343737
I'm working with Adobe DPS buttons and currently have set up Facebook and Twitter sharing with them. The buttons take a URL and when clicked pull up the share dialogue.
The Facebook taking the following
http://www.facebook.com/sharer/sharer.php?u=(encoded url goes here)
The encoded url being whatever I want to share.
I want to be able to do this with Houzz.
I've found the page on Houzz.com but I don't think I would be able to use this type of URL share option based on what they provided.
http://www.houzz.com/buttonsAndBadges#houzzbutton
Has anyone seen an option for Houzz similar to Facebook's?
After digging through Houzz's bookmarklet, I've found their somewhat difficult-to-pin-down sharer URL.
http://www.houzz.com/imageClipperUpload?imageUrl=(IMAGE-URL-HERE)&title=(PAGE-TITLE-HERE)&link=(PAGE-URL-HERE)
Just as a quick reminder: an image URL is required (unlike Facebook or Twitter, but somewhat like Pinterest) as one of the main points of Houzz is image sharing/scrapbooking.
I hope this helped someone!
I wish to fetch images from Instagram into iOS app. For this I am using Instagram API. I have set clientID and redirect-uri as shown in http://kmdarshan.wordpress.com/2013/02/23/integrating-instagram-sdk-in-your-ios-apps/ and http://instagram.com/developer/
Code used is given in link above. But in the line:
if ([[UrlParts objectAtIndex:(1)] isEqualToString:#"NeverGonnaFindMe"]) {...
the string always equals to oauth.
Where am I getting wrong? Anyone having any other option to integrate instagram images into iOS apps, please let me know.
I just found a project to fetch instagram images into ios app on:
https://github.com/hsandhu/HSInstagram
Awesome application, saved my time.
you can try this framework to show the instagram feed, both user and tags
https://www.cocoacontrols.com/controls/sbinstagram-viewer
is more complete and is easy to integrate
regards
I'm using the UIActivityViewController to share an image and url from within my app.
I'm having trouble formatting the facebook post. I attach an image using a subclassed UIActivityItemProvider and provide the text for the post in the same way.
I want to add a url, but it needs my apps custom url scheme in front of it like this
myurl://image?url=http://imageurl.com
The problem is, when this is posted, only the last half of the url is clickable (from http:// onwards). Which means it doesn't open my app with the url.
Is there another way to do this?
I know I can create an app on Facebook, but how can I tie the two together using the UIActivityViewController?
Thanks
You have 2 options :
Create a simple server-side web service that will redirect from http://yourserver.com/linkToApp/image to myurl://image .
It could even show a different page/preview if the app is not installed/if you're not on an ios device.
Create a facebook app and use "Deep linking" (it will basically do the same for you..)