Xamarin.Forms OAuth/ Facebook SDK login - facebook

Dear Xamarin developers,
I'm new to the Xamarin world and I like Xamarin.Forms.
When a developer find out a new platform (for me Xamarin(.forms)) he/ she wants to let the user login via OAuth (Facebook/ Google/ Twitter).
For Xamarin you have Xamarin.Auth, but I can't get it to work with Facebook or any other provider.
And for Xamarin.Forms there is no library or guide to do this.
So my question is; how do I implement OAuth(2) in Xamarin.Forms to use Facebook as provider?
Thanks in advance,
Theo

I have used Xamarin.Auth to authenticate against Dropbox with OAuth2 following this guide https://developer.xamarin.com/guides/xamarin-forms/web-services/authentication/oauth/.
As the documentation of the API was not sufficient when it came to error handling, I pulled the branch https://github.com/xamarin/Xamarin.Auth/tree/portable-bait-and-switch from Xamarin.Auth at github to be able to debug it. Later I switched back to the nuget version once I understood the main problems.
For Microsoft Authentification, I had to redefine some of the methods to be able to use it.
Hope this helps to get you started.

Related

Facebook Login On Xamarin Forms After Embedded Webviews Have been Deprecated

I am struggling to login on Xamarin Forms with Facebook on android specifically, ios is. still working, the implementation in my app is as described in this article: https://evgenyzborovsky.com/2018/03/09/using-native-facebook-login-button-in-xamarin-forms/ and has worked perfectly until Facebooks changes. Now when users try to login we get the following error message on android only: "Login disabled", "For your account security, logging in to Facebook from an embedded browser is disabled. You may be able to continue by updating the app you're logging in from and trying again."
I have read the write up on Facebook Developers here: https://developers.facebook.com/docs/facebook-login/android/deprecating-webviews
But the solution does not seem to be clear for Xamarin Forms as we are using Xamarin.Facebook.Android version 7.1.0
Any help or being pointed in the right direction will be appreciated.
The package has been updated few days ago to the version 11.2.0.1.
https://www.nuget.org/packages/Xamarin.Facebook.Android/11.2.0.1
I had the exact same issue and it's now fixed.

Flutter Auth with WiX

I am a beginner level developer. I have a WiX website and some authorized members in it. Now, I am creating an app for my website (in Flutter) and I want all of the members' login info in my app so that they could login to my app just like they login to my website. How can I do that?
I literally have no idea how to do that. I'll be glad and honored if someone would like to help me.
You can only do this through an API. I don't know if Wix has a plugin for generating API, otherwise you have to build one yourself

OAuth integration in iphone app

I have one problem regarding OAuth integration in iPhone App.
Can anyone help me how to integrate OAuth 2.0 with facebook in iPhone ?
I have referred so many sites about OAuth but I haven't got satisfied answer yet. I referred this question of stackoverflow. There is one good option about ShareKit. But my client wants only OAuth 2.0.
I downloaded framework from google code. I integrated it in my application. But How to use it ? Without guidance I can't implement it in proper way.
I have got stuck between my application and 0Auth 2.0 since last 3 days. Please can anyone give me idea or demo project or any another tutorial ?
Rather than implement OAuth for Facebook, make use of the Facebook iOS SDK which makes handling Facebook Auth and Requests much easier. You can read about it and download it here... http://developers.facebook.com/ios/
I just done a research
This post will really help you
Also please look at the below posts
iphone-facebook-oauth2-graph-api
OAuth and Facebook iPhone SDK
The framework you mentioned in your post is not for OAuth 2, but for OAuth 1.0a.
You can try the OAuth2Client we developed for talking to the SoundCloud API. It's build against draft 10 of the spec. I'm not sure which one is used by Facebook. Unfortunately the spec is not final yet and over the years different services adopted different drafts of the spec.
If you're able to argue with your client I'd try to convince him to let you go with the official iOS SDK. This gives you many benefits like automatic token refresh, single sign on via the official app & much more.

Facebook Connect Using C# ASP.net

Hi i want to develop an Facebook Connect application on my Website using C#.net which will retrieve all my Friends Birthday List from my Facebook account & post it on my Website. Similar to what www.gifts.com is having. Request anyone to share a Sample Code or any idea for the same.
Take a look at the Facebook c# SDK it should be able to get you going in the right direction. It is available via NuGet if you are using Visual Studio.

How to set up my iphone application with twitter?

How to Set up my application with twitter and then register the application with twitter so that people can send tweets from my app.
Please, can anybody help me in resolving this problem.
OAuth is a pain in the butt. Thankfully, Twitter-OAuth-iPhone combines both MGTwitterEngine by Matt Gemmel and OAuthConsumer (which makes MGTwitterEngine connect to Twitter using OAuth — basic authentification will eventually be taken down by Twitter). The package features a pretty simple example, too.
Don't forget you'll need to register your app as an oauth-client with Twitter to get your API key and secret, which authenticates your app with Twitter OAuth.
You could use MGTwitterEngine by Matt Gemmel. Here's a version and a tutorial with built in OAuthConsumer Library!
Checkout this free open source Twitter client made for iPhone.. it implements OAuth authentication and API calls for accessing all timelines:
Its a git repository. To download it to your mac, install a git client, and then open up a terminal and type:
git clone http://github.com/takuma104/ntlniph
Next open up this project, go to Project > Edit Project Settings. Select the Build tab, and select the iPhone SDK you are using from your list. Select Build > Run and you should be good to go.
I've studied this code very extensively for a similar client I had to build. Let me know if you have any questions on which files to use.
I think it's explained in Twitter api docs and there's a link in faq - see link in http://dev.twitter.com/pages/api_faq#attribution