google-plus

Can't resolve com.google.android.gms.plus.Plus class

妖精的绣舞 提交于 2019-12-05 05:03:05
I can't seem to resolve the Plus class from the Google Play services library. I've already imported the Google Play library into the project as an Android Library project through Eclipse. I'm also following the basic example from the getting started page. My onCreate is currently this: @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); mGoogleApiClient = new GoogleApiClient.Builder(getActivity()) .addConnectionCallbacks(this) .addOnConnectionFailedListener(this) .addApi(Plus.API, null) .addScope(Plus.SCOPE_PLUS_LOGIN) .build(); } Eclipse flags the

How to get the friend list using Google+ API OAuth 2.0

陌路散爱 提交于 2019-12-05 04:44:17
问题 I am having signin with Google+ to retrieve the users basic profile info(Name, Urls, Location, Profile Picture). But I want to also retrieve the user-id of the users friend so that i can give him/her better suggestion of whom the user already know in my website. $app_access_token = GetCH(); function GetCH(){ $ch = curl_init(); $pieces = explode(",", $_SESSION['access_token']); $piece = explode(":", $pieces[0]); $token = str_replace('"',"",$piece[1]); $url = "https://www.googleapis.com/oauth2

google plus login gives error code 10 in signed ionic app

纵然是瞬间 提交于 2019-12-05 04:33:32
问题 i'm developing an ionic application using google plus login. it was properly work when in developing.but in signed apk its give me error 10. my code is below window.plugins.googleplus.login({ scopes: 'profile', webClientId: 'xxxxxx.apps.googleusercontent.com', offline: true },function (user_data) { console.log(user_data) },function (msg) { alert(msg); }); i have generated a new SHA1 key and WebclientId by using realese keystore . i think this is a SHA1 key problem, but i'm not get solution

Google plus insert activity on stream

孤街浪徒 提交于 2019-12-05 02:47:08
问题 Tough time inserting an activity to google plus stream. After referring google developers guide. I found an example for java - https://developers.google.com/+/domains/posts/creating Is there a similar example to execute the activites.insert query using google-api-ruby-client. I followed following steps: Define access to app via omniauth-google-oauth2 GOOGLE_CONSUMER_KEY = google_config['KEY'] GOOGLE_CONSUMER_SECRET = google_config['SECRET'] google_scope = "userinfo.email, userinfo.profile,

Android Google plus sign in button

孤人 提交于 2019-12-05 02:37:33
问题 Following Google Sign Button, I implemented it on my android device. When clicking the button it shows you a popup asking your permission: Know Who you are on Google. Now what? It looks like this gives me nothing. It does not provide me access_token, or any user data. What is it good for? *Please do not tell me how to get access_token this is not what the question is about 回答1: You have to implement ConnectionCallbacks. And in onConnected(), you can start to get user data you want from the

Creating GoogleApiClient for multiple activities

我怕爱的太早我们不能终老 提交于 2019-12-05 02:18:47
I am developing an android app with Google+ API. I am having multiple activities which each require one instance of GoogleApiClient. As I understand from this post it is possible to call the same instance of GoogleApiClient for each activity. My question is how do we create copies of the GoogleApiClient specifically? Do we build one again with the .addApi(), .addscope() and implement onConnected method and OnConnectedFailedListener method again? Because it seems repetitive and inefficient. And wouldn't implementing these methods override the same methods from other activities too? It's not

Google + SignIn Button Blocked Frame

一世执手 提交于 2019-12-05 01:47:42
问题 I have been trying to build a kind of Hello World project using Google + SignIn. I followed the tutorial at https://developers.google.com/+/web/signin/, with my (excerpted) code being: ... <script> function signinCallback(authResult) { //location.reload(); //var x = 0 //while(x=0){ if (authResult['access_token']) { // Successfully authorized // Hide the sign-in button now that the user is authorized, for example: document.getElementById('signinButton').setAttribute('style', 'display: none');

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

丶灬走出姿态 提交于 2019-12-04 22:07:31
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.`enter code here`GetBytes(postData); // Set up the POST request for the code exchange. request

How to Sign out user using Google+ API?

拜拜、爱过 提交于 2019-12-04 21:33:52
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. The problem is in Internet Explorer,as it enables the "Stay signed in" option by default.I want to

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

冷暖自知 提交于 2019-12-04 19:54:12
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!! 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 or circles these people are in. Check this https://developers.google.com/+/api/latest/people/list List all