Update facebook status with C# - c#

My desktop application should update my facebook status.
Is there an API that allows to update the status with a login and pwd ?
Thanks in advance for your answer

Sure there is!
.Net FacebookToolKit it was done by a 3rd party for Microsoft, and then published as open source on CodePlex.
There is proper documentation and even videos on how to do your first desktop application and how to publish stories, status, etc.
FaceBookToolKit CodePlex documentation

Facebook Send User Status

There is the Status.set API that allows you to do this kind of thing.

Related

Facebook JS SDK + C# SDK Logic

I've been playing around with Facebook JavaScript SDK and Facebook SDK for .NET (Web) to try and create a simple Page tab app which does the below:
Show welcome page
If user likes the page, ask for proper extended permissions and redirect to another page reserved for fans only
Use the access token from the login to do things on the user behalf.
Anyway, my problem is with the logic of the whole thing, as the user enters the page what should I do after loading the JS SDK? It automatically shows the permissions box so that I could get the extended permissions user_likes instead of showing the welcome page.
My other issue is with the access token that is going to be used later in time. Should i store it in session state? if yes, how? What happens if i try to access it and it's expired?
I know this is a general question but please could someone guide me through the best practices to initialize and use the facebook SDK in a .NET WebForms tab app?
Thanks a lot.
(I've read through both docs on Facebook and C# SDK. Great for browsing the API but not much documentations or examples about .NET WebForms)

logging in using twitter api in C#

I am developing an application in which I will supply my twitter username and password to login to twitter account.I had seen twitter API's ,But that wouldn't helped me out because none of them contains any executable code on Visual studio.The .sln files are also not working.Anyone who can help me in providing a sample code.
Thank you in meekness
This article on CodeProject should set you in the right direction.
http://www.codeproject.com/Articles/247336/Twitter-OAuth-authentication-using-Net
Here is another good article on setting up your Twitter authentication as well.
http://www.voiceoftech.com/swhitley/index.php/2009/03/twitter-oauth-with-net/
Take a look at this turtorial C# Twitter Client
HTH.

facebook offline access using c#

i am developing a notification service in c# for our web site. its windows service no ui (asp.net / winform). This service will run on certain time and post something on users wall. i use social plug-in in our web site where user can grant required permission. Based on this i have few question
1) is there any c# library or sdk available for Facebook.
2) what information i have to store in order to access facebook offline.
i hope my question is clear. thanks for any help.
Update 1: i really need help on this. thanks once again.
There is a facebook API that can be used, http://developers.facebook.com/
You can't access facebook offline? I mean, if you wanted to save current information while online and then re-access the old information while offline that is possible just by saving the webpages, but you cannot access any new information. so your not really accessing facebook..
You'll need the user to log in, and there's a permission you can request that makes the session you get permanent. You'll have to have some kind of installer or something that will have the user log in, grant that permission, and then you'll save that access token. UI-wise, look at digsby, and notice how they make you log in to facebook the first time you link your facebook account.
i found this one and its helpful
http://blog.theunical.com/facebook-integration/simple-5-steps-to-publish-on-a-facebook-wall-using-dotnet-c/

IsMobileDevice Google Bot problem

i have a website that have 2 verisions 1 righular and the other fo mobile
it"s working great , but when google bot research my site ,
my site shown on google as amobile ver.
i think google bot pass the line:
if(Request.Browser.IsMobileDevice)
....redirect to the mobile ver (Not good for google it"s not the right ver)
you know a way to prevent that google refer to the mobile site
thanks
Yes, the problem is by default, the method Request.Browser.IsMobileDevice returns true for any User Agent it doesn't know about.
The trick is to add another .browsers file that identifies all the bots (this will happen with all of them, Yahoo, MSN, etc.) as NOT mobile devices.
I put a ticket in about this and explain it in detail here:
http://mdbf.codeplex.com/WorkItem/View.aspx?WorkItemId=3906

Simple Facebook Connect Demo in ASP.NET

Does anyone have a simple and successful demo implementation of facebook connect in an asp.net application. I am developing an asp.net web application and want facebook connect to be the primary method for logging in.
I was having troubles as well, but found that this stackoverflow question got me on the right track as far as the server side stuff is concerned
However, First you have to get the facebook connect button working from here Facebook Wiki
Then detect if they are logged in or not and redirect them appropriately to a welcome page.
Detect login via Javascript
Most other actions can be done via serverside with the Facebook ToolKit. (eg get their information, friends, etc..)
The last thing I think I should mention is logging the user out, so take a look at this. Facebook Wiki: Logout
Hope this helps
As I see, all the above examples and links are really outdated. The new Facebook Graph API makes the whole process a lot easier, without the need for any other components:
http://area72.ro/general-it/how-to-login-via-facebook-in-asp-net.html
try to use the toolkit called Facebook Developer Toolkit
you have in Steve Blog a post about it, and you even download he's Starter Kit so you can view all the code :)
Hope it helps
I know you asked for ASP.NET resources. The Facebook Connect page provides some good information as well as the source to a sample implementation using PHP. Hopefully you can pull some good information from the PHP code.
http://developers.facebook.com/connect.php Check out the links on the right side.
The provided demo can be accessed here... http://www.somethingtoputhere.com/therunaround/

Categories