Getting started with silverlight/facebook development - c#

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

Related

how to authenticate http requests with Google generated id-token in .net web api back-end?

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

Post and/or Share Text/Images on Facebook Wall Server-Side With .NET C#

I've spent a few days implementing Facebook's iOS SDK to allow our users to be able to login and then post text/images to their Facebook wall via our iOS application. I've got that all working smoothly.
However, management would like to take an alternate direction for several reasons (which are irrelevant to me), whereas instead of posting on the device side (iOS), they would like the device side to use the iOS SDK in order to get the user to login and then capture the AccessToken. Then, when the user chooses to share content from our app for example, they want to pass the AccessToken up to the server, and then have the .net/c# code do the actual posting of the text/image there.
1) Is this possible?
2) I see no official support from Facebook for a server-side api. All I see is that they support Mobile and Web (client-side).
3) Through my SO and other online searches, I've seen some very out-dated attempts at an open-source .net Facebook SDK, but they seem to have been abandoned.
4) I do know that it's possible server-side (using the oAuth api) to login and gather some user information, like name/profile photo). But that is not what I need. I need the opposite. I need to login on the client-side, but post/share on the server-side.
Any help and/or direction on this matter would be greatly appreciated.

Facebook SDK for Unity with mobile apps

I'm planning on building Unity mobile apps using the Facebook SDK for Unity.
However it seems before the app can be authorized it needs to be in the store. As it seems from my app page:
Also how can I get the connection allowed via UnityEditor for debugging as well:
None of these seem to make sense to me :(
You don't need to specify the store id's to make it work, then it would never work. You can also switch your app to sandbox mode, but be aware that only users in this facebook project will have a opportunity to login and act properly.
If you want to debug in the UnityEditor, you should get the newest (BETA) facebook SDK version, and the platforms set should be the platform that you are aiming (for mobile: android, ios). UnityEditor will take care of itself, giving you link to get app token to login in the editor.
Don't forget to follow all normal steps of setting your app properly in unity, just like in the documentation of Facebook Unity SDK.

How to Develop Facebook App When C# SDK Deprecated

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#.

Access Facebook from a C# Windows Client

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.

Categories