facebook-c#-sdk

How to specify a Windows Desktop platform with Facebook App

房东的猫 提交于 2019-12-03 07:35:12
I have written a windows desktop app (WinForms) in VS2010 .Net C#, which runs on Vista through to Win 8. I am now looking to adding facebook photo uploading functionality to the app using the facebook c# sdk. The problem I have is with Facebook Developer where I have started the process of registering my desktop app as a Facebook app so that I can then have it reviewed and then ultimately be given permissions to upload photos, but on the Facebook Developer website there is no option to choose 'Windows desktop client' (or similar) as my app platform. Without assigning a platform I cannot

How to transparently renew the Facebook access token while processing a service method which uses Facebook API calls?

一笑奈何 提交于 2019-12-03 07:19:06
问题 I have a WCF service which runs in IIS 7.5 and VS 2010. This service has some methods which internally use the Facebook C# SDK (version 4.1, not latest) in order to perform some GET and POST from/to Facebook. Since Facebook will soon remove the offline_access I have to handle the situation where an access token is expired. I have understood the way the authentication is performed (in order to get the code and after having the code to get the access token) in order to use the Graph API for

How to get started with the Facebook C# SDK for WP7?

馋奶兔 提交于 2019-12-03 06:29:37
I've been reading alot (and searching alot) but can not find a decent resource for getting started with Facebook C# SDK for WP7 . I'm NOT looking for a handout of code but rather a starting point to using this library to develop my WP7 app. I'm aiming to provide a feature to authenticate a user and allow them to post to facebook. I've read their documentation and there isn't anything on the topic, just how to register your app with facebook (???). They have 2 links to getting started but they bring up an empty page. Also most examples I have run into are targeting .NET 4(for desktop) or ASP

JsonObject to Model Facebook SDK

不想你离开。 提交于 2019-12-03 03:11:49
I'm have to use the facebook c# sdk for a new poject in .net 3.5 , I'm aware that the latest version has examples for 4 - but it's also compiled against the 3.5 so works completely. Anyway, and forgive me if I'm being incredibly dumb. But i'm looking to convert a json object into my model, can I do something like this? public ActionResult About() { var app = new FacebookApp(); JsonObject friends = (JsonObject)app.Get("me/friends"); ViewData["Albums"] = new Friends((string)friends.ToString()); return View(); } public class Friends { public string name { get; set; } public string id { get; set;

Post to application wall as application not as user

时间秒杀一切 提交于 2019-12-03 00:50:28
I created an asp.net mvc 3 facebook application using facebook c# sdk. I'm trying to post to my application wall , it works, but the post is created in this format: [my account name] via [my application] So, the post appears in the [my application] + others group. I want the post appears as made by the application, not made by me , so the post appears in the just [my application] group. I was looking for answers for this problem, and everybody says, you have to get the access token for application, but nobody says how to do that. Please could anyone provide an example code of how to do that???

Integration of Facebook and asp.net membership

╄→尐↘猪︶ㄣ 提交于 2019-12-03 00:50:04
I want to allow users to sign up to my website using Facebook. I already use the JS SDK on the client side for authentication and authorization and the C# sdk on the server side to get all the information I need to complete the user profile. My issue is that I order to allow the user to login with his facebook account, I need to create a username and password for him in my membership provider. I already decided I'll use the Facebook email as the username, but what can I do about the password? How can I later authenticate him? Thank you! Edit: What I am actually asking is: Once the user

How to connect to facebook, and debug facebook application using C# SDK

流过昼夜 提交于 2019-12-03 00:43:24
I'm really struggling trying to find something that actually works for getting the basics up and running. Even the tutorial apps that came with the SDK seems to have to be uploaded in order to work, so there's no easy way to debug and test it locally. Anyone got a link to a working sample I could work off of? Cheers! This is what I currently have in my aspx. There's nothing in the code-behind: <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="FacebookTest.WebForm1" %> <%@ Import Namespace="Facebook" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0

ASP.NET MVC3 and Facebook integration

断了今生、忘了曾经 提交于 2019-12-03 00:01:52
I'm just about to start a new ASP.NET project using MVC3, and since some of the requirements are about facebook integration, I need your advice on the following issues: 1- Is it achievable to connect my Membership users to thier Facebook accounts so whenever a user share/add/comment on an event on my website, I can automatically share these actions using his/her Facebook account? 2- also the ability to create Facebook events when the user create one on my site, and if he/she updates the event information, I may update them on Facebook too. 3- Can this be achieved using Facebook Connect, or

How to transparently renew the Facebook access token while processing a service method which uses Facebook API calls?

你。 提交于 2019-12-02 20:51:59
I have a WCF service which runs in IIS 7.5 and VS 2010. This service has some methods which internally use the Facebook C# SDK (version 4.1, not latest) in order to perform some GET and POST from/to Facebook. Since Facebook will soon remove the offline_access I have to handle the situation where an access token is expired. I have understood the way the authentication is performed (in order to get the code and after having the code to get the access token) in order to use the Graph API for getting Facebook information (as presented here ). I have two questions: When my service method is called

Facebook C# SDK Recommend Post Using Access Token

醉酒当歌 提交于 2019-12-02 17:15:05
问题 I'm using Facebook C# SDK and i want to recommend posts using offline accesing. And i try this code but it's return The remote server returned an error: (400) Bad Request. var client = new FacebookClient("ACCESS_TOKEN"); dynamic result = client.Post("/POST_ID/likes"); How can i recommend post using access_token ? Thanks for reply.. 回答1: I just saw another user with the same issue. It might be a bug in the SDK or with the Graph API. As a work around, you can do this. var client = new