{"action":"created","issue":{"url":"https://api.github.com/repos/calebd/SimpleAuth/issues/96","labels_url":"https://api.github.com/repos/calebd/SimpleAuth/issues/96/labels{/name}","comments_url":"https://api.github.com/repos/calebd/SimpleAuth/issues/96/comments","events_url":"https://api.github.com/repos/calebd/SimpleAuth/issues/96/events","html_url":"https://github.com/calebd/SimpleAuth/issues/96","id":71568012,"number":96,"title":"There is no class registered to handle Instagram requests. - Swift","user":{"login":"chahooo","id":11803039,"avatar_url":"https://avatars.githubusercontent.com/u/11803039?v=3","gravatar_id":"","url":"https://api.github.com/users/chahooo","html_url":"https://github.com/chahooo","followers_url":"https://api.github.com/users/chahooo/followers","following_url":"https://api.github.com/users/chahooo/following{/other_user}","gists_url":"https://api.github.com/users/chahooo/gists{/gist_id}","starred_url":"https://api.github.com/users/chahooo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chahooo/subscriptions","organizations_url":"https://api.github.com/users/chahooo/orgs","repos_url":"https://api.github.com/users/chahooo/repos","events_url":"https://api.github.com/users/chahooo/events{/privacy}","received_events_url":"https://api.github.com/users/chahooo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-28T11:55:05Z","updated_at":"2015-04-28T17:25:24Z","closed_at":null,"body":"Hey Caleb,\r\n\r\nI am getting the following error when launching in Swift.\r\n```\r\nTerminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'There is no class registered to handle Instagram requests.\"\r\n```\r\nI understand (from reading one of your answers on teamtreehouse) that SimpleAuth cannot find the files associated with handling IG authentication. I have the authorisation command in my initial view controller class but  I suspect that this has something to do with the fact that I may not have called the following right in my AppDelegate.swift\r\n```\r\nSimpleAuth.configuration[@\"instagram\"] = @{\r\n    @\"client_id\" : @\"CLIENT_ID\",\r\n    SimpleAuthRedirectURIKey : @\"https://mysite.com/auth/instagram/callback\"\r\n};\r\n```\r\nI couldn't figure out a way to write that in swift so I attempted to call it in a .m and .h files and bridge those into my project like so. Forgive me for the horrible coding I've never done Obj-C in my life as I am new to coding and attempted to copy off a tutorial.\r\n```\r\nPhotoBombersHeader.h\r\n\r\n#ifndef Photo_Bombers_PhotoBombersHeader_h\r\n#define Photo_Bombers_PhotoBombersHeader_h\r\n\r\n#import <Foundation/Foundation.h>\r\n\r\n@interface  simpAuthConfiguration : NSObject\r\n\r\n@property (strong, nonatomic) id someProperty;\r\n\r\n- (void) someMethod;\r\n\r\n@end\r\n#endif\r\n```\r\n```\r\nPhotoBombersHeaderM.m\r\n\r\n#import <Foundation/Foundation.h>\r\n#import <SimpleAuth/SimpleAuth.h>\r\n\r\n\r\n@implementation simpAuthConfiguration : NSObject\r\n\r\n// This method is the one we will use to\r\n- (void) someMethod {\r\n    SimpleAuth.configuration[@\"instagram\"] = @{\r\n        @\"client_id\" : @\"*******\",\r\n        SimpleAuthRedirectURIKey : @\"https://www.google.com\"\r\n    };\r\n}\r\n\r\n@end\r\n```\r\n\r\nAnd i would then call `simpAuthConfiguration` in my AppDelegate.swift after bridging PhotoBombersHeader.h so the methods could be used in my Swift project. \r\n\r\nTL;DR - Basically couldn't figure out a way to translate language and tried to do it a different way and it isn't really working, any chance you could help me out? \r\n\r\nCheers,\r\nJack"},"comment":{"url":"https://api.github.com/repos/calebd/SimpleAuth/issues/comments/97143341","html_url":"https://github.com/calebd/SimpleAuth/issues/96#issuecomment-97143341","issue_url":"https://api.github.com/repos/calebd/SimpleAuth/issues/96","id":97143341,"user":{"login":"calebd","id":1761121,"avatar_url":"https://avatars.githubusercontent.com/u/1761121?v=3","gravatar_id":"","url":"https://api.github.com/users/calebd","html_url":"https://github.com/calebd","followers_url":"https://api.github.com/users/calebd/followers","following_url":"https://api.github.com/users/calebd/following{/other_user}","gists_url":"https://api.github.com/users/calebd/gists{/gist_id}","starred_url":"https://api.github.com/users/calebd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/calebd/subscriptions","organizations_url":"https://api.github.com/users/calebd/orgs","repos_url":"https://api.github.com/users/calebd/repos","events_url":"https://api.github.com/users/calebd/events{/privacy}","received_events_url":"https://api.github.com/users/calebd/received_events","type":"User","site_admin":false},"created_at":"2015-04-28T17:25:24Z","updated_at":"2015-04-28T17:25:24Z","body":"A missing class means you don't have the provider installed properly. You will get different errors if you haven't configured that provider. How are you installing it?\r\n\r\nAnd configuring it from Swift is easy:\r\n\r\n```swift\r\nSimpleAuth.configuration()[\"instagram\"] = [:]\r\n```"}}