How do you check if the user is already logged in Xamarin.Android with google using
xamarin.googleplayservices.auth
Related
For microsoft teams I want to programatically install an app for another user.
I am following https://learn.microsoft.com/en-us/graph/teams-proactive-messaging
The authenticated user is an admin for the organization and I am using their token in the authorization header.
I am using graph explorer to call the following:
POST /users/{user-id}/teamwork/installedApps
{
"teamsApp#odata.bind" : "https://graph.microsoft.com/beta/appCatalogs/teamsApps/{teamsAppid}"
}
And it is returning "code": "Conflict"
It worked when I use the same user-id as the authenticated user but it shows the conflict issue when the user-id is for a different user (within the same organization).
The authorized user has accepted all necessary permissions.
The other user does not currently have the app installed.
I'm using graph explorer and I selected all permissions for TeamsAppInstallation and TeamsApp
I was using a user id that already installed the app. The conflict meant that they already had the app installed. Once I installed the app for the user then this worked successfully.
I'm upgrading Facebook SDK from 3.x to 4.x and need to log in as different Facebook users to my application (game) in order to check if FB requests work correct.
In 3.x login dialog switched to FB application, so I could change the user in the FB application and got new credentials for my login. Now I only got "You have already authorised..." message in a Safari-view login dialog.
I changed user in FB application several times as well as uninstalled my application in order to clean its local cache - nothing helps. My application always logs in as User 1, even if I logged in as User 2 in FB application.
How can I login as a different user (clear saved token, got a credentials dialog or something else)?
You need to log in fb from Safari and exit the user =)
I've been trying to copy the functionality of the SwitchUserSample Facebook project. This project shows how it's possible to manage multiple Facebook users in one app.
When I switch the Facebook sample project to use the Facebook Graph v2.0 the sample project stops working as it should. Rather than silently logging the new user in, it prompts them to enter their username and password each time.
Does anyone know of a workaround or solution to this problem?
Steps to repeat:
1) Download the sample project:
https://github.com/facebook/facebook-ios-sdk/tree/master/samples/SwitchUserSample
2) Create a new app in the Facebook developer area - new apps will use the v2.0 API
3) Compile the app and add a new user to a slot
4) Toggle the user - rather than silently logging in, it will show a login dialog
I am using twitter #anywhere JS API in my application and don't know how to use their methods and properly execute them. At present, I am following this docs for the API.
I am working on a scenario where, I need to check from my app, if any twitter user is logged in on the same browser, get the current twitter user details and cross check with my app for the twitter user. If the user exists in my app, automatically login the user. (more importantly it should not ask the user to connect to the twitter app. Without asking the credentials I need to get the currentUser)
NOTE: Facebook already supports this type of method. We can get the facebook loggedin user session from getSession() method.
Is there anyone there to help me out on this one?
I am developing application where the user has to provide a facebook link by login to actual an facebook account. Where I am successfully getting link of logged in user.
Reference Link(Edited wrong URL) :
https://www.facebook.com/app_scoped_user_id/YXNpZX3o4dhgdfhYmZAoZAWlEOGdSNVJuM05xcEdZAcmplelpYaF85bRbFBCSXpNVmJEdsdfgsdgjl1WG0wOEVdsdfhggfhGb0ZA4TZAnRFR0EtZA1ZAJaGtjYnh5YURZATUM4ZIa2V1gdfhdDV1WHhR/
I am able to store it and retrieve to reuse. It is working fine to navigate user under installed application and logged in user profile to same profile. But if I am going to open another registered user with another profile link and added as my contact list. While going to access their actual profile to open under facebook native profile (Edited wrong URL)
https://www.facebook.com/app_scoped_user_id/WlEOGdSNVJuM05xclelpYaF85bYXNpZX3o4dhgdfhYmZAoZARbFBCSXpNVmJEdsdfgsdgjl1WG0wOEVdsdfhggfhGb0ZA4TZAnEdZAcmpRFR0EtZA1ZAJaGtjYnh5UM4ZIa2V1gdfhdDV1WHhRYURZAT/
I am not able to launch his profile.
To open profile under installed native facebook application I am getting success for:
fb://profileapp_scoped_user_id=YXNpZX3o4dhgdfhYmZAoZAWlEOGdSNVJuM05xcEdZAcmplelpYaF85bRbFBCSXpNVmJEdsdfgsdgjl1WG0wOEVdsdfhggfhGb0ZA4TZAnRFR0EtZA1ZAJaGtjYnh5YURZATUM4ZIa2V1gdfhdDV1WHhR/`
But not able to redirect to:
fb://profile?app_scoped_user_id=WlEOGdSNVJuM05xclelpYaF85bYXNpZX3o4dhgdfhYmZAoZARbFBCSXpNVmJEdsdfgsdgjl1WG0wOEVdsdfhggfhGb0ZA4TZAnEdZAcmpRFR0EtZA1ZAJaGtjYnh5UM4ZIa2V1gdfhdDV1WHhRYURZAT/`
Please let me know the appropriate solution.