I am trying to use Google OAuth 2.0 in windows phone 8.1. All is well but I am getting an extra screen after user consent screen which has a message
please copy this code , switch to your application and paste it there.
I need the app to resume after the user gives the app the permission to access requested data.
Someone help me figure out why I am getting this extra screen and how I can avoid it an resume into my app again
You should select your app type as "web application", then set your redirect uri.
Please refer to below post.
How to prevent the extra view displaying an access code when using Google OAuth 2.0
Related
How to get publish_pages and manage_pages permission for my Facebook app to post photos to my Facebook page via my console application?
Note: When i tried to send app review for manage_pages and publish_pages permission. i have entered required details and successfully uploaded screencasts video but unable to save it.
enter image description here
Help me to achieve this. Thanks in advance.
Unable to submit app review
You just need to provide all the information needed. In your video, you need to show how your application request permission. Note that facebook updated their privacy policy. Please read their guidelines how to submit app to review.
For your instance, in your video you need to show how your app request
permission on the facebook of the specific user. Note that all of your
request permission must need the user interaction.
Show that in your video and your review will be submitted.
And also note that when you make an app that uses facebook SDK or any related to facebook, you mustn't do it programmatically.
Example: In publishing, you can't change the caption or the message
programmatically, the user will the one to type all of that.
Show that in your video and your app will be approved.
I am developing a Store App in which I need to publish some message and image on user's profile. Using WebAuthenticationBroker I have allowed the user to login and it returns a token but then I want to open Feed Dialog. How can I achieve this? Using graph API or any other third party SDK?
I finally figured it out. There is no direct library which can get this task done but it can be achieved using WebAuthenticationBroker. I just have to pass the appid in url which is permitted to publish on facebook. Using it when post is published our app is once again activated without affecting the flow. Maybe it helps someone like me who is looking for solution to it.
Basically I want to achieve the same fucntionality which you normally see in android or ios devices. So if I click on login it should open facebook application(not webview) if facebook is installed but in case app is not installed it should open webview.
Currently it shows me a message do you want to search on store which I don't want.
Any help will be highly appreciated.
Thanks
Vinod
Windows Phone SDK only has the API to launch an app from another app which wouldn't work in your case since you would not be able to share session tokens.
Your best approach to achieving this would be to try out the third party Facebook SDK for .NET. Take a look at the Login API which seems to provide the ability to invoke the facebook application on the app and if not available would take the user to the store (LoginBehaviorApplicationOnly - Windows Phone 8.1).
I understand you would like to bring up the WebView if app isn't available but this SDK doesn't seem to have that functionality. You could contribute to the project or request a feature addition.
Hope this gives you a good start?
I need to integrate google login to android xamarin application.
gone through the code from bellow link:
http://motzcod.es/post/67077106339/google-plus-services-login-and-1-in-xamarin-android
it shows the error connection failed and [GooglePlayServicesUtil] Google Play Store is missing.
even ofter adding google play service(Froyo) component.
even i gone through the bellow links
https://developers.google.com/+/mobile/android/sign-in
Android: Login using google account?
Google Login For Android App
but this is related to android eclipse using java code.
can anybody suggest me how to do this in xamarin. any hints/links are appreciated.
thank you.
Finally i got a solution by doing the research over the available codes from xamarin forum and stackoverflow.
I made use of the OAuth2Authenticator
Register in google developer console as webapplication instead of installed application(android)* provide the redirect url with valid url ("http://abcd.com/xyz.aspx") same should be used in the application code.
On authentication complete it will return access_token
By using the access_token make the REST request to get user complete information (https://www.googleapis.com/oauth2/v1/userinfo?access_token=" + accessTokenValue + “.)
Deserialize the json response to get information in object.
*If we registered in developer console as installed application(like
android) after making OAuth2Authenticator request it will show window
with message please copy this code switch to your application and
paste it there [code] manually need to close the window and proceed
to authentication. to get ride of this webapplication type is choosen.
Refer for more info. : Login by google account integration for Xamarin.Android and Xamarin.iOS
The answer given is great. It works without trouble so long as that redirecturi is a real and accessible url for the underlying WebView to connect to at the end of the flow. In a mobile scenario this really doesn't make sense but google requires it. The examples typically say use localhost as the redirecturi which leads to a 401 UnAuthorized response showing in the UI. Ugh. Authentication is successful, but you have this ugly box you have to click on.
My solution on this was to have the redirecturi be the me link, https://www.googleapis.com/plus/v1/people/me. The code you have completes, there are no errors and the view is dismissed. Hope this helps somebody.
I am trying to integrate the Facebook login into my app by following the tutorial on facebooksdk.net. I am trying to use the Facebook button control.
When I click the button I get following error:
Given URL is not allowed by the Application configuration.: or more of
the given URLs is not allowed by the App's settings. must match the
Website URL or Canvas URL, or the domain must be a of one of the App's
domains.
Screenshot for reference -
According to some sources there is currently a bug which will prevent Facebook Login for Windows Phone from working if you do not have any entries in the "Valid OAuth redirect URIs" field in the Advanced section of your app settings. This can be worked around by adding "https://m.facebook.com/dialog/return/ms" in this field.
However that did not resolve the issue, so what else can I try to resolve this?
There is a bug in Facebook and its APIs:
There is currently a bug which will prevent Facebook Login for Windows
Phone from working if you have any entries in the "Valid OAuth
redirect URIs" field in the Advanced section of your app settings.
This can be worked around by adding
"https://m.facebook.com/dialog/return/ms" in this field.
That suggestion is wrong, and you actually need to add https://www.facebook.com/ to the "Valid OAuth redirect URIs" field in the Advanced section of your app settings.
I had the same issue before and I solved it by making the following changes to the app settings in developer dashboard. All you have to do is:
Go to App Dashboard at developers.facebook.com
Go to settings
Go to Advanced Settings
There is an option "Embedded browser OAuth Login" make sure it is set to "yes"