facebook-c#-sdk

How to login / authenticate facebook without browser for desktop application in C#

社会主义新天地 提交于 2019-12-04 05:54:13
I can authenticate Facebook for desktop application using web browser control. But I want to log in without the browser. Email and password will be given through windows form.I've searched a lot, but found nothing on this. Many people saying that it's not possible, facebook won't allow for privacy policy. But applications like tweet deck or nimbuzz are doing that. So I think it's possible. I want to use Facebook's Latest C# sdk. It is not possible. See this link: https://developers.facebook.com/docs/authentication/ To quote from that link: Desktop Apps Our OAuth 2.0 implementation does not

Facebook C# SDK, AJAX in iFrame app

喜欢而已 提交于 2019-12-04 05:30:40
问题 I am making an iFrame application for Facebook using the Facebook C# SDK. I have it that the user is authenticating and I can get their username using the Graph API (FaceBookApp.Api("/userid")) My problem now is that when I do an AJAX call to a page I can no longer use the Api. The userid is 0. When opening up FireBug the response from the request is "Unsupported get request." I suspect this has something to do with the face that the AJAX request is using a different session for the call and

Where did FacebookOAuthClient go?

雨燕双飞 提交于 2019-12-04 05:03:57
I just "upgraded" to 6.1.0 of the c# SDK and found that the FacebookAuthClient has been removed. I checked the commit log on github and there's not much info there. Does anyone know how you are supposed to authenticate with the latest version of the SDK? prabir It has been removed. Starting with v6 you can now use it with normal FacebookClient.Get() method. http://csharpsdk.org/docs/faq.html How do I get a Facebook Application Access Token? var fb = new FacebookClient(); dynamic result = fb.Get("oauth/access_token", new { client_id = "app_id", client_secret = "app_secret", grant_type = "client

Facebook fan page app pass string to app_data and retrieve

爱⌒轻易说出口 提交于 2019-12-03 21:52:22
Hi i have a multiple page facebook fan page app in asp.net c#. how do i set and retrieve that app_data querystring? is this part of the signedrequest or the actual url of the fan page? will there be cross domian issues in getting this in safari and ie? i can get the signed_request using the following: if (!string.IsNullOrEmpty(signedRequest)) { dynamic SignedRequestData; var DecodedSignedRequest = FacebookWebContext.Current.SignedRequest.Data; SignedRequestData = DecodedSignedRequest so basically on the first page i want to get the signed_reqeuest using the above and then append this to the

Starting multiquery in client throws parser error

不打扰是莪最后的温柔 提交于 2019-12-03 21:33:41
I have a following problem in c# SDK: when I try to run multiquery in my desktop application with following string (searching for pairs of IDs of mutual friends) I get a parser error: string strCommonFriendsQuery = "{ \"user_friends\":\"SELECT uid2 FROM friend WHERE uid1 = me()\", \"mutual_friends\":\"SELECT uid1, uid2 FROM friend WHERE uid1 IN (SELECT uid2 FROM #user_friends) AND uid2 IN (SELECT uid2 FROM #user_friends)\" }"; fb.Query(strCommonFriendsQuery); Parser error: unexpected '{' at position 0. The same string (without the escape sequences before quotation marks) works if I paste it to

Programatically log in to facebook and post from server side

元气小坏坏 提交于 2019-12-03 21:28:33
I want to connect my web application with the facebook business page. Each time I add a new product to the page I want to post it on facebook wall. I have a facebook application and the page owner username and password. Can I automatically authenticate with the user, pass to facebook and send the post request from server side only? Usually I am logged in with another facebook account when I add products. Also I would like to post when another page user add a product. You can post to Facebook as a facebook page using the manage_pages permission. You'd need to obtain this permission from a user

C# Facebook SDK extend an accesstoken to 60 days

主宰稳场 提交于 2019-12-03 21:24:26
The main question: How am I supposed to extend the 2 hour access token for the 60 day access token via the C# SDK? Can you provide a sample of just that section where the code has already been traded for the 2 hour access token? Background: I've been looking around on here and trying various solutions and haven't found one that works for me yet. I can successfully make the /me call and get the information about the current user however when I try to extend the access token it fails. The goal of this app is to allow a user to set up a post and to monitor likes and comments after the fact for a

“The post's links must direct to the application's connect or canvas url”?

情到浓时终转凉″ 提交于 2019-12-03 21:24:20
I'm building an application for WP7 using the Facebook C# SDK. When I attempt to post a message to a users wall (Just a plain message) everything works fine. But when I attempt to post a link to the users wall I get this exception message: (OAuthException) (#100) The post's links must direct to the application's connect or canvas URL. Does anyone know how to fix this? I have heard of canvas applications but I didn't think this applied to a phone app. Perhaps this is a setting on Facebook? Any feedback is appreciated. Here is the code I used to post to facebook: private void button1_Click

Facebook c# sdk get users email

。_饼干妹妹 提交于 2019-12-03 21:22:23
I have a site which is using facebook for auth. I want to gather some basic info when a user signs up including their email address. The code i have for the login is standard: public ActionResult Login(string returnUrl) { var oAuthClient = new FacebookOAuthClient(); oAuthClient.AppId = AppSettings.GetConfigurationString("appId"); oAuthClient.RedirectUri = new Uri(AppSettings.GetConfigurationString("redirectUrl")); var loginUri = oAuthClient.GetLoginUrl(new Dictionary<string, object> { { "state", returnUrl } }); return Redirect(loginUri.AbsoluteUri); } How do i add the request to access

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

不羁的心 提交于 2019-12-03 17:52:55
问题 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