InstaGallery is an easy way to access your Instagram account and get your gallery and get his media in a few steps.
- You need a Facebook Developer account, go to Facebook Developer and create a new account if you haven't yet
- Create a new Facebook application following the steps that appear on the official web site Create Facebook Application for Instagram
- Open your
Info.plist
- Set a new key with name
InstagramClientId
and set your Instagram App Id in this key - Set a new key with name
InstagramRedirectURI
and set with your Instagram App Redirect URI - Set one more key with name
InstagramClientSecret
with the Instagram App Secret. - Init
GalleryController
with methodInstaGallery.gallery
. If you need retrieve the media selected, do you need setGalleryDelegate
delegate with the optinal parametersdelegate
. For example
let galleryController = InstaGallery.gallery(withDelegate: self)
let navigationController = UINavigationController(rootViewController: galleryController)
present(navigationController, animated: true, completion: nil)
- Enjoy! 🎉
InstaGallery is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'InstaGallery'
Then, run pod install
The Swift Package Manager is a tool for automating the distribution of Swift code and is integrated into the swift
compiler.
Once you have your Swift package set up, adding Alamofire as a dependency is as easy as adding it to the dependencies
value of your Package.swift
.
dependencies: [
.package(url: "https://github.com/MRodSebastian/InstaGallery.git", .upToNextMajor(from: "0.4.0"))
]
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create pull request
- Manu Rodriguez (@MRBenzex)