can not get information from a userid - user-interface

I have an user id: 503536350,
this is the profile: https://www.facebook.com/profile.php?id=503536350
but why when I use Graph API tool, I can not get infor from this id
I don't understand why,
(image)
http://www.freeimagehosting.net/5a987

If the graph API returns 'false' it's usually because of privacy or visibility reasons. The most likely reason is that the user in question has disabled all Platform apps - such users can't be accessed at all via the API

Refer this existing answers:
How to get the Facebook user id using the access token
Graph API: How to grab current user's information?
Facebook API: can I get detailed info about user's location?

You should hit this Graph API for your information after getting Access token:
https://graph.facebook.com/me?access_token={access-token}

Related

Microsoft Graph API calendar/getSchedule POST request parameter

Could anyone please explain how to use Microsoft Graph API's calendar/getSchedule request for application permission type?
I am using the the it in my app as a cronjob, means that i need to use 'POST /users/{id|userPrincipalName}/calendar/getSchedule' instead of 'POST /me/calendar/getSchedule' since the later requires a user to sign in.
My question is which user I should choose for {id|userPrincipalName}? Just random one from the list I want to check or just the admin id will do?
I have found a github issue regarding this but no one has answered it yet.
You can use any user or admin id on the condition that the id has a mailbox which enable them to access a calandar.

How do I get a user's organization id when they login with Google oauth?

I'm using Laravel Socialite to handle logging in with Google. In response I can see the user's domain. I was wondering if there was also a way to get an organization id that's user belongs to.
I was wondering if there was also a way to get an organization id
that's user belongs to.
No. The only information that you have access to is stored in the Access Token and ID Token. The exception being if the Access Token also provides API access (privileges) to GCP or G Suite.
You'll need to request additional scopes to find the organization ID [1].
[1] https://cloud.google.com/resource-manager/reference/rest/v1/organizations/search

Google API: Using OAuth to get the user's country

I'm trying to retrieve the user's country through Google's API. Using 'https://www.googleapis.com/plus/v1/people/me', I'd suspect that the user's country would be returned but it does not. I've looked through the docs and StackOverflow, all the the results are about retrieving the user's location using Google Maps, which I'm not interesting in.
The information is inputted when creating an account at the bottom here:
Is there any way to get this information from Google? Thanks.

Google Admin SDK [Directory - API] check User password

I am using Google Admin SDK Directory API to create users and using Service account I am able to perform CRUD operations on them.
I have a requirement whereby I have to check the credentials of users created using SDK.
When you fetch the users the password is not returned, hence comparison cannot be done.
I'll really appreciate if someone lets me know what would be effective way of approaching the checkCredentials function.
Thanks.
Google does not ever return the value of the password. That would be a monumental security risk.
See their documentation in regards to the user resource used in the directory API. It specifically states that the password field is never returned. It can only be used for setting the password.
If your requirement is too check creds on a newly created user, you should look into trying to login as the user with the password you just sent, using the google auth Apis
At the moment, the only solution I've found is to simulate the user login flow with a fake browser (Apache's httpcomponents-client for Java for example) pointing to Google Account ServiceLogin.

Search event in facebook - required user access_token

My app is looking for events in facebook in a particular city by https://graph.facebook.com/search?q=Sity&type=event&access_token=[..] and publishes the data found on another site.
To search for public events in the marker is now required Facebook access token.
How can I get a long token that my application was looking for events without requiring additional permissions to users?
Thank you very much for your help.
Get an app access token – https://developers.facebook.com/docs/authentication/applications/

Resources