Uber API rider rating - uber-api

Can I retrive rider rating from Uber API ?
There is only '/v1.2/me' endpoint, but it's returning only:
{
"picture": "https://d1w2poirtb3as9.cloudfront.net/f3be498cb0bbf570aa3d.jpeg",
"first_name": "Uber",
"last_name": "Developer",
"uuid": "f4a416e3-6016-4623-8ec9-d5ee105a6e27",
"rider_id": "8OlTlUG1TyeAQf1JiBZZdkKxuSSOUwu2IkO0Hf9d2HV52Pm25A0NvsbmbnZr85tLVi-s8CckpBK8Eq0Nke4X-no3AcSHfeVh6J5O6LiQt5LsBZDSi4qyVUdSLeYDnTtirw==",
"email": "uberdevelopers#gmail.com",
"mobile_verified": true,
"promo_code": "uberd340ue"
}
...without rider rating

Those appear to be the expected returned fields according to the documentation. Rider rating is not one of the returned fields from that profile endpoint:
https://developer.uber.com/docs/riders/references/api/v1.2/me-get

Related

Facebook Graph API - Get user profile from conversations

by using Facebook Graph API I can fetch the conversations between users and my page. One of the returned conversations looks like this:
{
"message": "message content",
"from": {
"name": "My Page's Name",
"email": "198301820627381#facebook.com",
"id": "198301820627381",
},
"to": {
"data": [
{
"name": "John Doe",
"email": "396169264164870#facebook.com",
"id": "396169264164870",
}
]
},
"id": "m_mid.$cAADurJ0X8UhnJ3tfxVg9jYXJW5fp"
}
I see that I got the user's id field. How can I fetch this user's profile (first name, last name, profile pic) base on this field ? (or is there another way ?)
I followed the Graph API's User Reference but all I got are the user's id and name (which I already have from the returned conversation).
profile_pic only works for PSIDs (Messenger bot events), for ASIDs just use the picture field instead

Facebook "locale" attribute not given by Graph API

i'm trying to extract an user locale from Facebook via Facebook Graph Api.
https://graph.facebook.com/marcusmaiaa
For example, this URL request returns me a locale:
{
"id": "100000879345465",
"first_name": "Marcus",
"gender": "male",
"last_name": "Maia",
"link": "https://www.facebook.com/marcusmaiaa",
"locale": "pt_BR",
"name": "Marcus Maia",
"username": "marcusmaiaa"
}
But... when i try do to this same request via Facebook Graph API (using the Graph API Explorer with an app access token), it doesn't give me a locale:
{
"id": "100000879345465",
"first_name": "Marcus",
"last_name": "Maia",
"link": "https://www.facebook.com/app_scoped_user_id/874412045931432/",
"name": "Marcus Maia",
"updated_time": "2014-10-25T20:56:05+0000"
}
Why? I didn't found anything about it in the documentation.
Thanks

Facebook Graph API apprequests node doesn't return "from"

Moving from FQL to Graph API, I found that the V2.2 Graph API apprequests node returns inconsistent responses.
https://graph.facebook.com/v2.2/<id>/apprequests
sometimes returns JSON with the "from" field and sometimes not.
The correct JSON is:
"application": {
"name": "Myapp",
"namespace": "My NS",
"id": "123456"
},
"created_time": "2015-03-16T19:34:00+0000",
"data": "invite",
"from": {
"id": "111111",
"name": "Sender name"
},
"message": "Come and play!",
"to": {
"id": "99999",
"name": "Recipient"
},
"id": "123_456"
}
However, the "from" field in the JSON is sometimes missing (even when requesting it specifically in the "fields" parameter).
When using FQL, I always get the sender_uid field (with the same app token and same user):
SELECT request_id, app_id, recipient_uid, sender_uid FROM apprequest
WHERE app_id = <appID> and recipient_uid=<FBID>
Can anybody explain the mystery?
Facebook's response after investigating this bug: This is by design. There are certain privacy restrictions on Graph API which didn't apply to the deprecated FQL.
We investigated this on our end and found that this happens when the user blocked the application or completely removed Facebook's third party integration.

How To User Fetch Friends Data Using Graph API

What i Need:
i need to fetch my friends like email ,id , name .
i have tried using https://developers.facebook.com/tools/explorer/1456/?method=GET&path=me&version=v2.1.
url is like graph.facebook.com/v2.1/me .
data
{
"id": "77",
"email": "af55#gmail.com",
"first_name": "Mo",
"gender": "male",
"interested_in": [
"female"
],
"last_name": "f",
"link": "https://www.facebook.com/app_scoped_user_id/777/",
"locale": "en_GB",
"name": "singh",
"timezone": 5.5,
"updated_time": "2014-08-18T05:34:55+0000",
"verified": true
}
but making call graph.facebook.com/v2.1/user
Error
{
"error": {
"message": "(#803) Cannot query users by their username (user)",
"type": "OAuthException",
"code": 803
}
}
i have refer the url https://developers.facebook.com/docs/graph-api/reference/v2.1/user.
i have tried to solve by go ->getACEESS TOKEN->check on permissions->email->user_friends.
but still i cannot fetch url through user.
making call with me/friends
{
"data": [
{
"name": "Ashwani Gaur",
"id": "62036"
},
{
"name": "Shobhit Puri",
"id": "131"
},
{
"name": "Rahul Raman",
"id": "10007"
},
{
"name": "Piyush Agarwal",
"id": "800899"
},
{
"name": "Neeraj Yadav",
"id": "10000"
}
],
"paging": {
"next": "https://graph.facebook.com/v2.1/777009872366669/friends?limit=5000&offset=5000&__after_id=enc_AeytV0frT0k1mTj0ZfZRTxPsdSP3TVT_Qd-I1Aoc8vA8YseN4Rr8Vg5n6RgECxsd6RXaVNL8fJ0iaI79qEW7K8nw"
},
"summary": {
"total_count": 383
}
}
i need id, name, email, friend personal_info.
Since April 2014 (v2.0), there are no friend permissions anymore and it´s not possible to get user data from people who don´t use the App. See the changelog for more information: https://developers.facebook.com/docs/apps/changelog
The docs are a bit misleading, you can only use /me to get data of the user who is logged in at the moment.
Update:
By requesting /me/friends, you get all the friends using the App. But as i said in my first sentence, there are no friend permissions anymore. You will only get ID and name of your friends, nothing else. Even if your friend authorized your App, you can ONLY get more data with his own session and by calling /me. The email permission only gives you access to the email of the user who is logged in, not access to the emails of all his friends, of course.
You can only store the email after authorizing a user, that is the only way for other users to get the email of his friends - at least the ones who authorized your App too.

Facebook test user - graph api does not return first name and last name

For a few days now, I am suddenly experiencing a strange behavior with the graph API access test users' friends.
When fetching the user objects of friends of my test user (which are test users as well), the first name and last name data is missing.
When I use the browser with
https://graph.facebook.com/100001234567890
I get the response
{
"id": "100001234567890",
"name": "Dorothee Chengman",
"first_name": "Dorothee",
"last_name": "Chengman",
"link": "http://www.facebook.com/people/Dorothee-Chengman/100001234567890",
"gender": "female",
"locale": "de_DE"
}
But when accessing it in my app with a request
https://graph.facebook.com/100001234567890?access_token=imagineTokenHere&format=json
I get the response
{
"id": "100001234567890",
"link": "http://www.facebook.com/profile.php?id=100001234567890",
"birthday": "11/03/1980",
"gender": "female",
"locale": "de_DE",
"updated_time": "2011-12-04T16:48:17+0000"
}
So, suddenly, the first name and last name are missing :-(
Please help.
This is a known issue, being tracked in the bug tracker, it should only affect test users:
https://developers.facebook.com/bugs/320132691332575