Get name of current UBER rider with UBER API? - uber-api

If all I want to pull is the current riders either first name last initial or first initial and last name is that possible without having to have a customer login to either my app or to give access to my app through UBER? I am trying to construct a simple lighting app where the riders name can be displayed on a screen or led light for better recognition of who a driver is picking up. Thanks for any help anyone can provide.

Related

obtaining geolocation for a facebook chatbot

I am creating a chatbot using messenger in python but I don't know how to get the geolocation from the facebook user (latitude, longitude). I saw that I had to use graph API but the field status does not seem to work. Would you have a query example? Thanks in advance!
[Update with the current status about how to solve this]
Location Quick reply have been deprecated and removed since end of june 2019.
They're supposed to announce a new way of achieving the same behavior but nothing so far 6 months later.
Facebook recommends asking for user's address in a textual form.
This means that if you use an API consumming GPS coordinates you now must use an address to GPS conversion service.
You could think that using a webview with a "get geolocation" button would do the trick but this feature is blocked on all desktop browsers. If the iframe content isn't on the same domain you cannot get geolocation data. Still it works on mobile (as it's not just a simple iframe but a full webview).
Basically, at the time of this writting, you have no much way to achieve the same as the "get position" quick reply behavior.
The only solution is to ask the user's address in a textual way and convert it to GPS coordinates (if you need them).
You can use the location quick reply:
https://developers.facebook.com/docs/messenger-platform/send-messages/quick-replies#location

Is there a way to generate a map directions image (for fb messenger bot usage)

I'm working on a Facebook Messenger bot for a client and I'm trying to give the users a map with directions to the client's location. I know FB has a button to get the user's location, but I'm not sure how to show the directions.
Any ideas how I might go about doing that because I don't believe Facebook provides something like that by default or as a template message (I could be wrong?).
There is no template for this afaik, but you could just create a picture of the map (and directions) server side. Sending pictures with the bot is no problem at all. It all depends on how exactly you want to show directions, but i guess there is no other option. You can include a list too, showing all the steps/turns to get to the destination.

Ionic start page depending on a condition

I am developing an App where I want to route the user to a input screen when he logs in for the first time and then to the standard login screen when he launches the app for the second time.
Ideas anyone?
Thanks!
I have a sample posted here.
https://github.com/aaronksaunders/simpleKinveyAngular/blob/master/index.html
The basic premise is to use the resolve capabilities on the ui-router to determine if the user has logged in to the app or not. Based on the results, you take a different path in the route

apps.Facebook.com/XYZ vs. Facebook.com/XYZ/app_123456789

what's the difference between apps.Facebook and Facebook.com/COMPANY_NAME/app_1234567 ?
For example: http://www.facebook.com/AcademyofArtUniversity/app_307555419320340
I'm trying to build a similar contact form page for a client, but I when I create an app, I get apps.facebook.com/APP_NAME rather than the app name at the end. Is there a difference? Are these different types of apps, or is one just an older style name?
Bonus question: Why wouldn't Academy of Art (using the second step from their example above) request User permissions to pull in the Facebook Graph data rather than require users to re-enter it? Is this related to my question above? Is there a best practice around using Permissions vs. New Entry?
apps.facebook.com/[namespace] is the primary url to a Canvas app, while the latter, `www.facebook.com/[pagename]/app_[appid] is your app added to a page as a Page tab app.
For the second question, this app probably doesn't want to ask for permissions (perhaps to lower the friction) since only a few fields would actually be accesible via the graph.

How to display foursquare post-checkin screen in iphone app?

Adding the "foursquare check-in" ability to an existing app has raised some questions. Mainly, "what to show after the user has checked in?". Within the native foursquare client, after a checkin is completed, it will display a screen showing any badges, specials and points you earned with that checkin.
Since checking-in isn't the primary function of our app, we wanted a way to give the user an option to see this information on demand. We can get all of this information from the API's checkin response, but we didn't want to reinvent the wheel.
We tried using the custom URL for displaying the native application as described here (Client API) but that just displays the checkin information, not the results from it:foursquare://checkins/CHECKIN_ID
Is there a client URL that is undocumented that we can call to display this information, or will it need to be displayed in our app?
There is no custom URL / intent for showing post check-in information. For now you'll need to reconstruct your version of the post check-in screen.