Google+ circle membership check by API - api

Is it possible to use the Google+ API to check if a user is a member of another users particular circle?
Example use case:
User Joe adds User Bill to "Joes Friends" Google+ Circle
User Joe is also a user on my website "videos-from-my-weekend.com"
Joe Picks a particular video from my site, then grants access to that video to anyone in his "Joes Friends" Google+ Circle.
User Bill logs in to my website, and is able to watch Joe's videos.
Nefarious Steve tries to watch Bill's videos, but fails the Google+ api check since he's not a member of the "Joes Friends" Google+ Circle.
I hope I explained that clearly enough.
This is really a code independant question.

If you're trying to check a particular circle, then no you can't do that.
If you're trying to check that the viewing user exists in any circle, then the following conditions must be met:
Users must have authorized your app to request their friends list by requesting the auth scope https://www.googleapis.com/auth/plus.login, which is included by using Google+ Sign-In or you can just do a straight OAuth 2.0 flow with it.
When the user authorizes your app, they have a choice of whether to allow your app to know about all, some, or none of their circles. The a flat list of people from any circles they allow your app to see would be available with people.list.
After they authorize your app, you make requests and get both of their friend's lists and store those in your DB for checking nefarious Steve against later.

Related

Linkedin API for full profile access

I want to access the full LinkedIn profile information using the API, but I have only managed to access the basic profile and e-mail address with the API-key and Secret Key.
Am I missing something or is it more restricted in some manner?
How did you get the LinkedIn API ?
Did you applied for partnership because as far as I know LinkedIn changed the policy of API , so the API will be available only through the partnership and for that you've to pay different fee based on partner program
Have a look here, the same thins we've too.
I've fulfilled the application 3 weeks ago but no response yet.
***Subject: Having acces on LinkedIn API [160721-001958]****
I had spoken with one of our experts on this and he had confirmed for me that you can still go through other workarounds for this.
Go to https://developer.linkedin.com/partner-programs
Click on either of the options based on your need. You will be directed to another page where if you scroll down you will find the button for Apply to become a LinkedIn Solutions Partner. Click on that.
You will be directed to a page that says Apply to become a LinkedIn Partner and you can fill up the form from there for access.

Can the instagram api pull likes and comments from an account that I do not manage

I want to pull likes and comments from any account that I specify. Can this be done with the Instagram API or do you have to have the accounts permissions to pull this info.
Essentially I want to be able to analyze this data without having log in credentials for the account.
Thanks!
Following the June 2016 changes to the API, you will need to invite the other users to be "Sandbox Users" of your API client. And even then, the access will be limited to their last 20 posts. Here's a quick explanation of the new Instagram API rules.
TL;DR
Sandbox users are other Instagram users that you “invite” to your
client. The main reason to do this is so that your app will then be
able to “see” their last twenty posts in addition to your own. In
other words, when they accept the invitation, they show up on the tiny
desert island where your app lives.
So you don't need their actual login credentials, but they do need to accept your invitation in order for it to work. The only other alternative is getting your app through the submission process to "go live" but there are very few use cases which they will accept anymore.

instagram App Permissions Denied

We have an app and have built in IG integration but keep getting denied on our submission. We want to allow our users who have IG accounts to sign in on our app and then link their IG account. We show the IG icon and their IG name with a follow button so a user can gain followers on IG through our app. We need the follower list permission so that we can know if they are already following them or not and the relationship permission so that we can follow from our app. We have detailed the use case demo'd on a video but this is the only reply we continue to get. Any assistance would be great.
follower_list:
This permission (follower_list) does not support the use case you described in your submission notes, screencast and website. Please review Login Permissions (http://instagram.com/developer/authorization/) for a comprehensive list of permissions and valid use cases.
relationships:
This permission (relationships) does not support the use case you described in your submission notes, screencast and website. Please review Login Permissions (http://instagram.com/developer/authorization/) for a comprehensive list of permissions and valid use cases.
I'm running into the same issue with them declining my application for a valid use case.
I think it's because there wasn't enough information for them to validate the app, or the website isn't following their Platform Policy. I would read through it and make sure you're doing everything they want you to do. I would triple check what use case you picked and how you justified that your app falls into it.
It's also good to cover these, taken from Instagram.com:
Your submission should explain what does your app or company do, which
of the approved use cases your integration falls into, who will be
using your app, how do your user authenticate with your app, how you
use the API to power your integration, how does your product use the
data acquired from Instagram, etc.

Google Play Games OAuth-2: app visibility on Google+

I'm trying to resolve an issue regarding Google+ and authorizing users for an app using Google OAuth-2. More specifically, I find the authorization is successful when the user presses Accept on the consent screen; using the oauth playground and the auth/games scope, that looks like: http://retrofist.com/temp/Auth_01.png
However, if I then check my app privileges at plus.google.com/apps, I see the playground listed as visible to 'Only You': http://retrofist.com/temp/Auth_02.png - even though 'Anyone on the web' was selected on the consent screen. As I'm using Google Play Games for leaderboards, the result is that no one can see any leaderboard entries until they have manually corrected this to 'Public' visibility.
Can anyone explain a reason or workaround for this? Many thanks.
I observed similar issues, my scores was not published publicly to the leaderboard of the game. I then realized that, this is only for users whose email is defined as tester email. I could see the scores as publicly posted after deleting those emails from tester list.

How to make authorize request with Google Plus Social Graph

I am working on PHP application, which communicates with Google Plus. For getting information about people in circles I send request to this link: https://plus.google.com/u/0/_/socialgraph/lookup/visible?o=%5Bnull,null,%22GOOGLE_USER_ID%22%5D&rt=j and it retrieves me list of people in circles for specific user.
In my application I want to check for each user in my friend list (person in circle), if he/she has me also in circles, which means we are friends. But if person has blocked to list people in circles for public, then I get empty array in response despite he/she is my friend. So I would like to know, how to send with this link authorized request. For example how to include there access token.
Because now it shows only public data and it acts like I am not logged in.
Use: https://developers.google.com/+/api/latest/people/list and ask the user to sign-in then you'll be able to get their consent and retrieve the list of people they're following.