google-plus

google+ share and onendinteraction - no confirm

夙愿已清 提交于 2019-12-07 06:22:49
问题 I'm setting up a google+ share button, and want to know when someone has shared the link so that I can perform an action. You can register a callback on the share button using the onendinteraction attribute, and the documentation states that this will be called whenever the share box is closed and whenever the share is completed. My function is being called when the window is closed, but not when the link is actually shared: function redirectGooglePlus(jsonParam) { alert(jsonParam.type); }

Android Intent to launch Google+ app at Google+ Community screen

老子叫甜甜 提交于 2019-12-07 05:23:31
问题 There is already a good SO question for displaying a Google+ Page in the Google+ Android app: Open Google Plus Page Via Intent In Android But what about the Intent to launch the Google+ app at a specific Google+ Community? EDIT - to the silent down-voters, please explain why you down-voted. 回答1: My solution, working with G+ version "5.3.0.91034052", tested today final Intent intent = new Intent( Intent.ACTION_VIEW, Uri.parse( "https://plus.google.com/communities/107847486351510098159" ) );

How to Sign out user using Google+ API?

佐手、 提交于 2019-12-06 17:05:39
问题 I have been developing a desktop application in C#(WPF) using Google+ APIs.It's a simple application that provides a login page for Googleplus+, when user enters credentials & consents the application's permission request,it retrieve and display the User's profile information. Using the Google+ API I am able to retrieve the User's Profile information from Google+. But when I exit and open the application again, instead of login page it is going directly to the " Request for approval " page.

how to get Google plus access token in windows application C#.net

不羁岁月 提交于 2019-12-06 16:19:28
问题 I am preparing a windows application in that I want to use oAuth2 to access info from google plus. But I am getting bad request for my following code.. I am able to create app in google console and fetch the "code" for application access. WebRequest request = WebRequest.Create( GoogleAuthenticationServer.Description.TokenEndpoint ); // You must use POST for the code exchange. request.Method = "POST"; // Create POST data. string postData = FormPostData(code); byte[] byteArray = Encoding.UTF8.

Issue with Wordpress Adding extra user profile fields

一世执手 提交于 2019-12-06 16:15:46
I am having an issue with adding custom fields to the wordpress user profile and having the inputted fields show on the front of the site. Using the below tutorial I thought I had it working, however noticed that actually it only works for ONE user, then all of the others don't work, this is what is confusing me as I am used to things either working, or not working, whereas this works for the first user I tried it for, but no others. I have looked high and low trying different things to no avail. My purpose for this is to allow multiple wordpress users to add their Google+ profile to the

Share in Google+

自作多情 提交于 2019-12-06 13:36:08
I need share link in Google+ from Android app. In documentation I saw this code: Button shareButton = (Button) findViewById(R.id.share_button); shareButton.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { // Launch the Google+ share dialog with attribution. Intent shareIntent = ShareCompat.IntentBuilder.from(ExampleActivity.this) .setType("text/plain") .setText("Welcome to the Google+ platform. https://developers.google.com/+") .getIntent() .setPackage("com.google.android.apps.plus"); startActivity(shareIntent); } }); But it will work if on my phone is

How can We get friends list and circles of Google using API in PHP?

血红的双手。 提交于 2019-12-06 13:34:13
问题 I am trying to get friend's list and circles from google+ but not getting any specific API through which I can get those things. I am doing this all stuff in PHP. If anyone have idea about this it would be appreciated. Thanks in Advance!! 回答1: Using the Google+ Sign-In you can get access to a list of people that the user follows AND that they also permit you access to - but you have no guarantee that this is the full set of everyone in the person's circles. You are also not told which circle

Google+ API. Sharing interactive posts error. Claimed origin not in whitelist

老子叫甜甜 提交于 2019-12-06 12:34:11
I do everything as stated on this page developers.google.com however, the window appears for a split second, and then an error in the console "Claimed origin not in whitelist: (mySiteLink)" Your web origin in the Google API Console should only include http:// or https:// and then the host name. Make sure you don't have / in the end. The web origin is under the OAuth 2.0 Client ID section in the Console. I remove the '/' at the end of "Javascript Origins" url and solve. Example: Original that error URL: http://www.example.com/ Changed to URL: http://www.example.com Problem solved. 来源: https:/

Google+ Sign-in for Android - Google Permissions Activity Result Codes

元气小坏坏 提交于 2019-12-06 12:11:12
I've found out a small issue when working with Google+ Sign for Android and after searching the web (and SO obviously) I'm asking my question out loud to see if anyone has noticed the same. I'm enabling server-side API access for my app as described here. Let me be detailed about what's going on. Take this fragment: Bundle appActivities = new Bundle(); appActivities.putString(GoogleAuthUtil.KEY_REQUEST_VISIBLE_ACTIVITIES, "<APP-ACTIVITY1> <APP-ACTIVITY2>"); String scopes = "oauth2:server:client_id:<SERVER-CLIENT-ID>:api_scope:<SCOPE1> <SCOPE2>"; String code = null; try { code = GoogleAuthUtil

ios google+ api youtube subscribe to a channel

情到浓时终转凉″ 提交于 2019-12-06 12:05:02
I am trying to subscribe a user to a youtube channel. So the user logs in to an iOS app, hits subscribe, and I would subscribe the user to a predefined channel. So I have an app created with the YouTube Data API v3 service enabled. scope: kGTLAuthScopeYouTube GTLServiceYouTube *service = self.youTubeService; GTLYouTubeSubscriptionSnippet* snippet = [GTLYouTubeSubscriptionSnippet object]; snippet.channelId = @"UCGRjJrpD2bmk9Ilq6nq80qg"; GTLYouTubeSubscription* subscription = [GTLYouTubeSubscription object]; subscription.snippet = snippet; GTLQueryYouTube *query = [GTLQueryYouTube