Currently, I have an app and I want to integrate it with Facebook. My App is bases on C# and now the C# SDK is deprecated. Some requests can't be made by client side requests (extending access token for example), so Javascript SDK can't help.
Is there anyone who knows how to integrate a C# app with Facebook when C# SDK deprecated?
Thanks
Facebook open graph api's over REST. Event though C# SDK is deprecated, it won't be that tough to write basic http calls with basic http library of C# to make api calls.
With regards to login, you would have to embed an instance of browser, as far as I can remember, C# had msie embed options. Using the browser embed, one would have to capture the access token returned on redirect and use it later for making http calls to REST interfaces of Facebook api's from C#.
Related
I am building an application that should work with LinkedIn API V2 to make a data provider that will go through authorization process with OAuth2.0 and that will exchange the code with access token in order to make API calls towards LinkedIn in order to access the specific data from the user.
Does anyone know if there is any up-to-date library for easier implementation of LinkedIn API V2 in order to use it within my .NET Application, it is made with WPF (Windows Presentation Forms)
Basically what I am looking for is something similar to Facebook and Instagram Graph-API, I hope there is or there will be something for LinkedIn, let me know if you have some info!
Thank you!
I have a mobile App in Android that successfully authenticated with Google api returning id-token and also profile information. Now I need to integrate it with my login and registration which I use .net web api as backend. I found google explaind article but not with c# and nuget library and microsoft docs is little difficult to follow. It will be better if i can integrate it with Identity that visual studio provides when creating new project with user authentication generated.
thanks in advance
I resolved my confusion next day after little digging and trying>
Ok first there are two ways of authenticating with third party which i was mixing them and I got confused.
First one in which your application is web or mobile but with web view.
Second way (that I'am using) in which native android activity handle going to google api, so the resulted id-token I manually send it to my api and use this code in c# to verify, requires Google.Apis.Auth library from nuget
var Payload = await GoogleJsonWebSignature.ValidateAsync(idtoken);
See image of steps need to follow in the second way
For more info:
https://youtu.be/zZt8SFivjps
https://developers.google.com/identity/sign-in/android/start-integrating
https://developers.google.com/identity/sign-in/web/backend-auth
I have an application running on a server that periodically extracts data from Google Analytics. It doesn't issue many queries so I don't think any limit would be a problem.
I have a prototype running, however I had to provide a login a password for the authentication (in code).
I see that I can generate API keys and other kind of authentication bits and pieces in the Google APIs Console, however I am not sure how to use them and whether they can be used in place of the login/password.
It just doesn't seem right to use a user login/password to authenticate a server application.
Is there another way?
(I am using the C# client library)
You should be using OAuth 2.0. See:
http://code.google.com/p/google-gdata/source/browse/trunk/clients/cs/samples/oauth2_sample/oauth2demo.cs
for a sample OAuth workflow.
The best way to do this is with Google Service Accounts
https://developers.google.com/accounts/docs/OAuth2ServiceAccount
However, I don't know off the top of my head the best library for c#, but there does appear to be support for it in the Google library. http://code.google.com/p/google-api-dotnet-client/wiki/OAuth2#Service_Accounts
Here's a answer specifically about the PHP client.
Service Applications and Google Analytics API V3: Server-to-server OAuth2 authentication?
Is there any very simple sample applications to get started with facebook dev?
I just want to know how I would connect to facebook through silverlight, get the authentication stuff out of the way and then develop, debug and test my applications.
Do I need to be connected to a server which connects to facebook or can I do the development from my own PC which can 'talk' to facebook?
I'm also a bit worried about the updating APIs. Some of hte samples seem a bit old? I'd really like something for the latest version of silverlight/facebook API...
We are working on posting some silverlight samples to the Facebook C# SDK on Codeplex in the next week or so. You can find that SDK at http://facebooksdk.codeplex.com or http://www.microsoft.com/facebook. We will have an in browser and out of browser sample. For now, we have other samples on there that you can look at. For the most part the SDK works the same on any .Net platform.
I've been working on a SL application with facebook integration that utilizes. I use the JavaScript SDK to log the user in, then pass the access_token into my SL app via a ScriptableMember method. I then use the FacebookApp constructor that takes an access token to create a new Facebook App object. Then I can make my calls directly from the SL app, without the need for a server-side proxy.
One thing to note, in your Facebook applicaiton settings, just enter http://localhost/ without the port for your site address.
I'm eagerly awaiting a little more guidance from Nathan, as he's a developer of the C# SDK
is there any C# Library that enables me to acces my Facebok Account from a C# Application. All I've found are ASP.Net Libraries but I don't wan't to use ASP. I wan't to create a Windows Forms or WPC Client for Facebook. Is this possible? Basically I'm looking for something like Facebook Connect on the iPhone I guess.
Thank you very much
CaptnCrash
Yes, you can access the facebook API from WPF. check out the Facebook developer kit
We recently launched a C# SDK. You'll need to get the access_token using the OAuth flow via some interaction with a web browser and then the SDK will help you in making API calls.