Tag: instagram api

我怎样才能知道用户是否真的上传了照片到Instagram?

我的移动应用程序将通过移动共享将照片发布到Instagram。 我想知道用户是否真的在instagram应用程序上传照片。 如果他/她做了 – 我怎么能得到一个上传的照片的ID?

Instagram关系(POST)API在iOS应用程序中不起作用

我正在开发一个使用Instagram API的iOS iPhone应用程序,其中用户允许使用Instagram关系API关注另一个用户帐户,而且我总是收到此API请求的错误消息: API请求: https://api.instagram.com/v1/users/157xxxx469/relationship?access_token=169527xxxx.f71bc56.fb2a414a0ee7469ca381a3659f5cxxxx 收到的回应: { "meta": { "error_type": "OAuthPermissionsException", "code": 400, "error_message": "This request requires scope=relationships, but this access token is not authorized with this scope. The user must re-authorize your application with scope=relationships to be granted write permissions." } } 当我在login时被授权使用范围,我使用下面的URL来请求: https://api.instagram.com/oauth/authorize/?client_id=56a6xxxx6a8b41f288477fxxxxea253e&redirect_uri=http://localhost:8888/MAMP/&response_type=token&scope=likes+comments+relationships 但是,我惊讶的是,用户只需要访问基本信息权限而不是关系,评论或类似信息。 请参考下面的截图: 我不知道我是否已经被授予特权或不使用Instagram关系API; 我怎么可能检查? 另外,我做错了什么,我该如何解决?

oAuth Instagramlogin

我试图从Instagram使用oAuth 2获取访问令牌,以在范围中使用它。 我不明白我应该如何configuration“redirect_uri”(尝试了很多组合),如果我在本地应用程序中使用它,这意味着我不需要任何网站redirect,我需要redirect到应用程序本身,login后(也许我解释不正确的东西,因为不明白如何redirect_uri在本地应用程序工作) 在AppDelegate.swift补充说: func application(app: UIApplication, openURL url: NSURL, options: [String : AnyObject]) -> Bool { if (url.host == "oauth-callback") { OAuthSwift.handleOpenURL(url) } return true } 在ViewController.swift中 : import UIKit import OAuthSwift class ViewController: UIViewController { override func viewDidLoad() { super.viewDidLoad() let oauthswift = OAuth2Swift( consumerKey: "cc6dd7ca50c74f4f92a1a8328c9d4426", consumerSecret: "74f6bf3c839b4e15a747a332d#######", authorizeUrl: "https://api.instagram.com/oauth/authorize", responseType: "token" ) […]

如何使用OAuth2Swift获取Instagram的access_token

我尝试了所有可能的选项,但redirectURI不返回access_token 。 我添加了一个callbackURI,我可以从用户请求login并授予访问权限,但在callback中出现此错误。 我在开发者门户网站上注册了这个URI,它似乎正常工作: http://oauthswift.herokuapp.com/callback/instagram 当我尝试使用以下方式在Web浏览器上进行身份validation时: https://api.instagram.com/oauth/authorize/?client_id=CLIENT-ID&redirect_uri=http://oauthswift.herokuapp.com/callback/instagram&response_type=token 我得到访问令牌: 当我尝试使用OAuthSwift ,我得到这个错误,redirectURI不包括access_token ,尽pipeDocs说: 这是错误的: serverError [没有access_token,没有代码,服务器没有提供错误] 这是我的代码如下: // MARK: Instagram func doOAuthInstagram(_ serviceParameters: [String:String]){ let oauthswift = OAuth2Swift( consumerKey: serviceParameters["consumerKey"]!, consumerSecret: serviceParameters["consumerSecret"]!, authorizeUrl: "https://api.instagram.com/oauth/authorize", responseType: "token" ) let state = generateState(withLength: 20) self.oauthswift = oauthswift oauthswift.authorizeURLHandler = getURLHandler() let _ = oauthswift.authorize( withCallbackURL: URL(string: "http://oauthswift.herokuapp.com/callback/instagram")!, scope: "likes+comments", […]

使用AssetPath创buildNSURL

使用UIImagePickerController,我可以得到如assets-library://asset/asset.MOV?id=2A2CE6C9-C178-4395-977B-E6F159BF6D5E&ext=MOV的媒体资产pathassets-library://asset/asset.MOV?id=2A2CE6C9-C178-4395-977B-E6F159BF6D5E&ext=MOV 。 NSURL *instagramURL = [NSURL URLWithString:[NSString stringWithFormat:@"instagram://library?AssetPath=%@&InstagramCaption=%@",[referenceURL absoluteString], strInstagramCaption]]; 现在,我想将这个资产path转换成NSURL将其传递到以下代码块: if ([[UIApplication sharedApplication] canOpenURL:instagramURL]) { [[UIApplication sharedApplication] openURL:instagramURL]; }

Instagram的API错误错误的请求IOS

您好,我在执行身份validation过程中遇到了与Instagram问题。 它几星期前工作正常,代码没有任何改变。 现在面临的问题是,在Instagram的login过程后,Safari浏览器显示“错误的请求400”的错误,没有更多的。

如何成为Instagram的任何客户的Instagram沙盒用户

我正在用Instagramloginbuild立一个应用程序。 我能够按照沙箱速率限制login和获取20个媒体文件。 现在,因为我想获取标记的图片,我必须邀请用户访问沙盒,然后我可以标记他们的照片并获取数据。 我的问题是我不能发送沙箱邀请。 我去pipe理客户端>编辑>沙箱选项>input用户名 ,input邀请。 它在沙箱用户中显示为“未保存” ,而我发送邀请的人没有收到任何邀请。 请帮助我,因为这是我在Instagram上的第一个项目。