Social networks notifications in a C# application - c#

I'm planning to write an application in c# in visual stuio 2013 that will allow a facebook user to login and receive their facebook notifications straight to the desktop as popups. Ive searched around and cannot seem to find whether or not it is possible to get notifications from facebook as soon as they happen and react to them in a suitable way, i'm wondering if this is possible and which bits of the api/ sdk i would need to use to get this to work.
Thanks in advance,
Alistair

Reading from the Facebook Developer's page(https://developers.facebook.com/), there isn't any specific SDK to C#, for desktop applications
.
But there is a SDK for Javascript, maybe a web application can be an option for you.

Related

WP8 Facebook send message app-to-app

My question is simple, but I cannot seem to find the answer with Google. I'm working on a Windows Phone 8 app and I would like to offer the possibility to share content with certain people in private. I will add a feature to send by SMS, but I would also like to offer the possibility to send a private message in Facebook.
There is a Facebook app for Windows Phone 8 and I wanted to know if there is a way with "App-to-app" communication to have the Facebook app send the message for me. This way, the user could edit the message and choose who to send it to, without my app having to manage this for him. I think it would be a better user experience than using the Facebook API since it would be consistent.
I looked online and there is a way to make a post. However, that's not what I want since my app handles a financial matters. Is there a simple way to do that ?
It depends not on your App but the Facebook App - if it supports such a feature.
In Windows Phone you can for example associate files and Uri's with certain Apps - MSDN source. By this it is possible (I think somehow) to pass a file (message) to other App (if that App supports it). Other problem may be where to save that file - maybe some webservice as IsolatedStorage is a bad idea.
It will be hard workaround, but surely depend mostly not on your App.
In this case I think it will be better to use Facebook API in your App.
Use Facebook to do post function like below
await Launcher.LaunchUriAsync(new Uri("fb:post?text=foo"));
Or you need implement an OAuth flow to get Facebook token then do Post by Facebook post API
https://graph.facebook.com//v2.0/me/feed?message=foo&access_token={TOKEN}
I think these are the possible ways to achieve what you want.

C#/.NET Desktop App Based on Instagram's API (For Offline Use & No Database Connectivity)

For my semester assignment, I want to make a simple C#/.NET windows desktop application that will call the Instagram API and use its Photo Effects/Filters.
But my professor has said that the app must be a standalone windows desktop app which means it should not have any internet or database connectivity.
For example: If a user selects an image/photo from his computer using the desktop application (that I want to develop), I want the application to show a bunch of instagram filters that can applied to that image (without internet or any database connection).
My basic question: Is it possible for me to develop such an app that uses the instagram API but does not need any internet or database connectivity? If it is possible, can you guys guide me? I have visited instagram.com/developer/authentication/ link but I am not sure what to do. And if it is not possible, is there any other way to make an app that applies some effects/filters to an image? Please help me out. Thanks.
EDIT: I am still a little confused though. When we use intagram on phone, we use internet only when we want to upload a photo. Filters are offline features. So is there any way I can get these features from the API? As my teacher said I 'can use API but not internet' I assumed APIs can work without the need of an internet connection.
To implement offline image processing, you would either need an assembly of the filters or the actual code. I don't think that Instagram provides such tools. But there are plenty of third party libraries out there for image processing, if that's what you are looking for. For instance the AForge image processing.

Windows Store Application Facebook SDK Integration

I'm novice when it comes to using API's with C# apps, and I decided to start a windows 8 Modern UI application. I've looked for information about how to integrate facebook into a project using the facebook API, and I found some useful answers, but some things are still unclear to me...
I've not found any official Facebook API for C#, I created an developer acount on Facebook but when i want to create a project using it, there is no choice for a c# application.
I've searched the Internet and found this : https://github.com/facebook-csharp-sdk/facebook-windows8-sample
I downloaded it and put the app's id I got from Facebook on it, but it doesn't work. My question is simple: Is there any official API with documentation or a website where I can get real and exact information for it?
The Official SDK from Facebook is only for PHP, Javascript, iOS and Android.
For the .NET world, there is the Facebook C# SDK which you have already found. You can do everything with it, including full Windows 8 Apps with Facebook integration.
The main site is at http://CSharpSDK.org/

Struggling to understand the structure of the Facebook API

Ultimately I want to create a desktop app that allows users to update their own status, view status' of their friends, update pics etc. - basically a lot of the functionality the facebook website provides. Through looking through some tutorials and sample projects it seems that an app must be created for the facebook account. Now is this the facebook account of the developer (i.e. mine) - which will provide an API key that will allow any other user to log in?? Does every desktop project need to authenticate the user through a facebook dialog window to take the users' credentials?? Where does OAuth fit into this?? If anyone can shed any light as to the structure of the facebook api and the ways in which I can grant this functionality from say a WPF C# app for example I would really appreciate it.
EDIT: Before complaints of a potentially huge question or too 'vague', my question is specific to the integration/use of the facebook API in desktop applications - not how to then retrieve status feeds etc. I'll work that out myself.
Per Facebook documentation, all desktop apps will need to implement some form of web browser integration, whether embedded within the desktop app or controlled.
See: http://developers.facebook.com/docs/authentication/
Desktop Apps
Our OAuth 2.0 implementation does not include explicit desktop app
support. However, if your desktop app can embed a web browser (most
desktop frameworks such as .NET, AIR and Cocoa support embedding
browsers), you can use the client-side flow with one modification: a
specific redirect_uri. Rather than requiring desktop apps to host a
web server and populate the Site URL in the Developer App, we provide
a specific URL you can use with desktop apps:
https://www.facebook.com/connect/login_success.html.
Don't worry it took me two solid days of trial and error and re-re-reading of the documentation on authentication to finally "get" it.

C# - Facebook API used with desktop apps?

Can I use the facebook API to make a windows desktop application? Like create a chat client to use to chat with facebook users??
yes, while I have not done it myself, there seem to be standalone apps developed for facebook like FaceoffIM... so I am assuming you can.
If I remember correctly, Telerik is maintaining something in Silverlight called fdek... which would again mean in principle it is possible.
There is also a Facebook C# SDK available on Codeplex which might be of use... under its project description it states "The Facebook C# SDK helps .Net developers build web, desktop, Silverlight, and Windows Phone 7 applications that integrate with Facebook."
Yes, you can develop desktop applications that interact with the Facebook API's.
You can use the C# SDK which is introduced in this official blog post https://developers.facebook.com/blog/post/395
Basically, any desktop application just needs to send http web requests to the Facebook API's. The easiest would be to use the the Graph API (https://developers.facebook.com/docs/reference/api/)
Hope this helps.

Categories

Resources