Tag: 谷歌加

无法使用GooglePlusPlatform从GooglePlusSample代码loginGoogle

我正在运行Google提供的GooglePlusPlatform示例代码来了解其SDk。 但是,当我运行该应用程序并单击loginbutton时,它会生成一个错误: 错误域= com.google.GooglePlusPlatform代码= -1“钥匙串错误”UserInfo = 0x1100bdd0 {NSLocalizedDescription =钥匙串错误} 同样的错误也发生在我创build的另一个使用GooglePluslogin的应用程序中。我Googlesearch了一下,但找不到任何有用的东西。 请帮忙!

Google Plus API for iOS获取好友列表

我想在iOS应用中获取来自Google+的朋友(人)列表。 我正在使用https://developers.google.com/+/mobile/ios/getting-started中提供的Google+ api教程 我在Google+开发人员控制台上创build了一个新项目 https://console.developers.google.com/project 在– (void)getPeopleInfo中获得跟随错误。 错误:错误域= com.google.GTLJSONRPCErrorDomain代码= 401“该操作无法完成。(无效的凭据)”UserInfo = 0x14d89340 {错误=无效的凭据, GTLStructuredError = GTLErrorObject 0x14d855e0:{message:“Invalid Credentials”code:401 data:[1]},NSLocalizedFailureReason =(Invalid Credentials)} 2014-03-13 12:40:21.026 GPlusDemo [636 / 0x3d35718c] [lvl = 3] (无效凭证)“UserInfo = 0x14d85f90 {错误=无效凭证,GTLStructuredError = GTLErrorObject 0x14d85ba0:错误:错误域= com.google.GTLJSONRPCErrorDomain代码= 401”操作无法完成。 {message:“Invalid Credentials”code:401 data:[1]},NSLocalizedFailureReason =(Invalid Credentials)} 我在ViewController.m中编写了下面的代码 – (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup […]

将cocoapod依赖关系添加到cocoa触摸框架

我想解决如何添加cocoa豆的依赖关系到一个iOS应用程序,embeddedcocoa触摸框架。 我有我的podfile像这样设置: link_with ['TestApp', 'TestAppFramework'] platform :ios, '8.0' source 'https://github.com/CocoaPods/Specs.git' pod 'google-plus-ios-sdk', '~> 1.7' 然后我添加一个视图控制器与loginbutton按照这里的说明: https://developers.google.com/+/mobile/ios/sign-in 一切编译没有问题。 如果我然后运行应用程序,它会启动并显示一个谷歌加loginbutton,但我得到了很多有关在两个地方定义的谷歌类的警告,例如: objc [6727]:类GPPSignIn在/Users/jamesburke/Library/Developer/Xcode/DerivedData/TestApp-eiqrhcijoqplxgaoodgtwzncvhjk/Build/Products/Debug-iphonesimulator/TestAppFramework.framework/TestAppFramework和/ Users / jamesburke / Library / Developer /CoreSimulator/Devices/730A1805-D46F-4D11-9F9E-DA37C1147F9A/data/Containers/Bundle/Application/EB7EE52A-7FB6-45CE-81B4-1E9A45875E69/TestApp.app/TestApp。 将使用两者之一。 哪一个是未定义的 如果我然后点击loginbutton,我得到一个错误,说我没有设置谷歌客户端ID – 我有,但因为GPPSignIn类依赖于共享的实例,它看起来像重复的类有困惑的事情: 2014-11-24 20:54:25.557 TestApp [6727:155282] ***由于未捕获的exception'NSInvalidArgumentException',终止应用程序,原因:'您必须指定| clientID | 为| GPPSignIn |' 查看堆栈跟踪,我们从TestApp范围转到TestAppFramework范围,尽pipe此时框架中没有代码 … 3 TestAppFramework 0x000000010c7f1a9c -[GPPSignIn assertValidParameters] + 77 4 TestAppFramework 0x000000010c7f35e7 […]

G + SDK给login错误?

我已经实施了Google Plus Api,并在网站中给出login。 但是,当我点击允许访问时login后出现问题,如下所示: 出现以下消息: 我的代码如下,请告诉我如果剩下的东西: – (void)viewDidLoad { self.signInButton.delegate = self; self.signInButton.clientID = kClientId; self.signInButton.scope = [NSArray arrayWithObjects: @"https://www.googleapis.com/auth/plus.me", nil]; SLNetworkAppDelegate *appDelegate = (SLNetworkAppDelegate*) [[UIApplication sharedApplication] delegate]; appDelegate.signInButton = self.signInButton; share =[[GPPShare alloc] initWithClientID:kClientId]; share.delegate = self; // optional appDelegate.share=share; [super viewDidLoad]; // Do any additional setup after loading the view, typically from a […]

检测iOS Google+login不完整。

通过“不完整”我指的是一个特定的用户旅程 用户打开iOS应用程序,并selectGoogle+login。 Google SDK将用户导航到G +应用程序进行login(如果未安装G +,则为webview)。 用户从Google+导航(例如点击主页button), 而不接受或拒绝所请求的权限。 用户导航回iOS应用程序。 使用Facebook SDK,当应用程序变为活动状态时,如果用户通过调用[FBAppCall handleDidBecomeActive];类似的行程,login会话将被closures[FBAppCall handleDidBecomeActive]; 看起来,Google+ SDK没有什么先进的function。 如何检测到用户从未完成Google+login旅程? 使用iOS7,Google+ SDK pod'google pod 'google-plus-ios-sdk', '~> 1.5'

用google plus在parse.com上的ios上login

我已经通过我的iPhone应用程序通过Google+集成login,所有的作品都是完美的,但我想在Parse.comlogin到iOS应用程序, 已经使用这种方法,但没有工作 [PFUser becomeInBackground:@"session-token-here" block:^(PFUser *user, NSError *error) { if (error) { // The token could not be validated. } else { // The current user is now set to user. } }]; 当我发送访问令牌,然后得到错误。 invalid session error. error code =101. 2.refreshToken 请任何人都可以帮助我login与谷歌加parse.com在ios中

在iOS中使用Google Plus的图像共享

我想分享在谷歌加图像: 我已经使用谷歌+ API AppDelegate.m [GPPSignIn sharedInstance].clientID = @"MyClientID"; [GPPDeepLink setDelegate:self]; [GPPDeepLink readDeepLinkAfterInstall]; 并button的动作 ViewController.m id<GPPShareBuilder> shareBuilder = [[GPPShare sharedInstance] shareDialog]; [shareBuilder setURLToShare:[NSURL URLWithString:@"http://dummy.com"]]; [shareBuilder setTitle:@"Some title" description:@"Some description" thumbnailURL:[NSURL URLWithString:@"http://dummy.com/image"]]; [shareBuilder setContentDeepLinkID:@"MyclientID"]; [shareBuilder open]; 但点击它崩溃和错误显示: -[__NSDictionaryM gtm_httpArgumentsString]: unrecognized selector sent to instance 0x1e887ea0' 它崩溃了[shareBuilder打开]

使用Google+ iOS API如何获取login的用户个人资料详细信息?

我已经成功地从iPhone应用程序login到谷歌加。 但如何获得login用户的详细信息? 如个人资料ID,电子邮件等 我试过这个, Stackoverflow的答案类似的问题,但我无法得到它的工作。 在这个例子中,究竟传递给accessTocken的是什么, NSString *str = [NSString stringWithFormat:@"https://www.googleapis.com/oauth2/v1/userinfo?access_token=%@",accessTocken]; 我在- (void)finishedWithAuth: (GTMOAuth2Authentication *)auth error: (NSError *) error { }方法中实现了该代码。 但是auth.accessToken返回一个空值。 所以我不能使用auth.accessToken来追加这个URL。 有没有其他方法来完成这个工作?

允许后,Googlelogin不会redirect到应用程序

我正在使用这个教程来实现用谷歌在应用程序login。 我通过cocoapods安装了GoogleSignIn。 pod 'GoogleSignIn', '~> 2.4.0' 里面增加了GSignIn-Bridging-Header.h和#import <GoogleSignIn/GoogleSignIn.h> 。 创buildurltypes: 用GIDSignInButton类创build一个视图 添加的代码: class ViewController: UIViewController, GIDSignInDelegate, GIDSignInUIDelegate { override func viewDidLoad() { super.viewDidLoad() GIDSignIn.sharedInstance().delegate = self GIDSignIn.sharedInstance().uiDelegate = self GIDSignIn.sharedInstance().clientID = "KEY" } func signIn(signIn: GIDSignIn!, didSignInForUser user: GIDGoogleUser!, withError error: NSError!) { if let err = error { print(error) } else { print(GIDSignIn.sharedInstance().currentUser.profile.name) print(GIDSignIn.sharedInstance().currentUser.profile.email) […]

iOS:可以在Google Plus中发送或发布消息

在谷歌加,是否有一个API发送消息或在iOS提交一个post到Google Plus?..我已经尝试阅读谷歌文档,但没有看到任何这样做。