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
Related
I have a local video link, and i want when the user press the button -> show twitter app with my video and title there (without using UIActivityViewController), just by pressing the button
You have to choose which way you want to go to upload a video, i.e. post a tweet with just that title you've mentioned.
Option 1
Use the HTTP API and create a URLRequest that contains the video as 'attachment'. You have to handle authentication first or the request will most likely fail.
Option 2 (Not really an option anymore)
Another way would be the iOS SDK provided, as given in the other example here. Problem is: there is no longer an official Twitter SDK for iOS. You could try your luck with the archived OpenSource SDK but maintainability is pretty decent with this.
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 am sharing images from my iOS app to instagram. I am posting image and captions in the request and that is working fine.
Now what I have to do is that I am sending some image link as caption. When I open the instagram, those are posted. But I need to show it as clickable link. How this can be done? Does the instagram API provides this functionality or I need to do some thing from my app? Please help me to solve this issue.
Thanks and regards,
Sreelash
According to their blog post, no prefilled captions are possible anymore.
How to open a Facebook timeline from iOS application?
I've tried this url, for example
fb://profile/Google
and it opens my personal timeline instead. Am I missing something?
Finally got managed to it. Here are some steps to get it:
http://graph.facebook.com/profilename
Look for "id" and get it.
fb://profile/retrievedIdFromStep2
I know the available custom URL schemes for the native Facebook iPhone App:
What are all the custom URL schemes supported by the Facebook iPhone app?
But I can't find a way to publish a URL to my wall / timeline in that way, that Facebook collects / shows the site title and thumbnail as it does with the touch.facebook.com/sharer.php file.
The only way I see so far is to call
fb://publish/?text=www.domain.com
but this only post the link to my timeline, not title, thumbnail and site description.
Does anyone know a better way?
Basically you have two options:
You can either launch Safari using the Feed Dialog URL Scheme as explained here or use Facebook SDK as explained here.
If your App isn't integrated with Facebook already, it's probably easier to go with the first one.