facebook-c#-sdk

dynamic object handle problem Facebook C# sdk

青春壹個敷衍的年華 提交于 2019-12-11 05:47:18
问题 I'm using Facebook C# sdk for desktop app. I'm getting the dynamic object and then extracting the name,id etc dynamic result = fb.Get("/me"); string name=result.name; Now problem is I can't extract the work information or favorite teams etc. I've used the required permissions, but unable to handle the dynamic object. It's in this format: "languages": [ { "id": "106502622718539", "name": "Bānglā" }, { "id": "106059522759137", "name": "English" } ], http://developers.facebook.com/tools/explorer

Connecting/Publishing to Facebook with FBConnect Works on Simulator, but not iPhone

妖精的绣舞 提交于 2019-12-11 04:19:54
问题 I have implemented FBConnect into my iPhone App, and it works perfectly on the Simulator (v4.3). However, when I test the the same code on my iPhone (v4.3.3), it appears as though my Facebook Button now exits out of my application and opens the Facebook App. The Facebook App displays a page saying I have already authorized my app, and that I should press "Okay" to continue. At first I did not think this was necessarily indicative of a problem, but when I hit the Okay button, I am simply

Authorize with Permissions

我的梦境 提交于 2019-12-11 03:12:44
问题 I've done the "Getting Started with an ASP.NET MVC 3 Website" using Facebook C# SDK 5.0.8. Everything works fine. How do I request extra Permissions from the user after that? When I do [Authorize(Permissions = "offline_access")] , I get 'System.Web.Mvc.AuthorizeAttribute' does not contain a definition for 'Permissions' error. If I use [FacebookAuthorize(Permissions = "offline_access")] , the page redirects to itself without going to the facebook login page. Please help! Thanks 回答1: So the

GetLogoutUrl method missing in facebook c# sdk 5.2.1 .net 4

試著忘記壹切 提交于 2019-12-11 02:46:41
问题 This method seems to be missing on the latest version of the sdk. Does anyone know why and what is the alternative method for logging out. 回答1: GetLogoutUrl method was marked obsolete in the previous releases as it doesn't provide the expected behavior. (you can read more about the details at http://bugs.developers.facebook.net/show_bug.cgi?id=17217) You will need to use Facebook Javascript SDK to logout or programatically delete the cookies of the WebBrowser control inorder to logout of

How to post image on facebook fan page using C# facebook sdk on codeplex

守給你的承諾、 提交于 2019-12-11 02:27:10
问题 Currently I'm working on my HTML 5 ASP.Net Application, Which has requirement of Graffiti Wall, When user draw something on my Wall(means on my HTML 5 Canvas element), and Press Share Button on my Page, at that time the whole picture should need to be post on one of the Facebook Page. Now my question is that is this thing possible using C# facebook sdk by codeplex ? if its possible, than how to post image on facebook fan page using this SDK?? Where can I get the good resource the implement

Facebook C# SDK throws ArgumentNullException

一笑奈何 提交于 2019-12-11 01:03:37
问题 I'm struggling with the facebook image upload. I'm using the Facebook C# SDK 5.4.1 to upload a picture from my Silverligth 5 Application (in Browser). Authentication is working and I get my access token with the needed permissions. (I'm storing my access token in a cookie because I don't want my Silverlight App to reload.) This is my code: void img_LoadingCompleted(object sender, EventArgs e) { Dispatcher.BeginInvoke(new Action(() => { string fbcode = ReadCookie("FBCode"); ExtendedImage img =

wp7 logout facebook

那年仲夏 提交于 2019-12-10 23:16:15
问题 I plan to use http://facebooksdk.codeplex.com/ for replacing my current integration with facebook. Any sample that demonstrates the logout process from facebook on WP7 using this library? I am able to login using OAuth right now but don't know how to logout. Just clearing the AccessToken doesn't work (this approach works for Twitter) Pratik 回答1: For anyone else looking to do this - checkout the answer (#2 at this time) from Sumit at this link Facebook Oauth Logout This is not using the

exchange code for token facebook-c#-sdk

流过昼夜 提交于 2019-12-10 20:56:49
问题 I am using The Facebook-C#-Sdk v5.0.3 to create a non-canvas webforms app in vb.net and i am having trouble exchanging the returned facebook code for the access_token. Does anyone have an example (C# or vb.net) that I can look at? Thanks awesome Stackoverflow community! 回答1: Try this: var app = new FacebookClient(FacebookContext.Current.AppId, FacebookContext.Current.AppSecret); var accessToken = app.AccessToken or this: var app = new FacebookClient(new Authorizer().Session.AccessToken); var

The remote certificate is invalid according to the validation procedure

自古美人都是妖i 提交于 2019-12-10 19:57:42
问题 Since the Oct 1st Facebook update requiring SSL for canvas apps my Facebook Application has stopped working and displays the error: The remote certificate is invalid according to the validation procedure. I'm using the C# Facebook SDK, and my app is ASP.NET MVC3 I've bought an SSL certificate and it seemed to install OK - but still getting this error. Any ideas? Thanks Nick 回答1: hmmmm, check the date and time setting on your server! I found mine to be set to 2002 for some stupid reason! Once

facebook logout API - Why Next?

一笑奈何 提交于 2019-12-10 16:37:15
问题 I'm writing a Windows Phone 7 app and have gotten Facebook login working using the C# sdk, but logging out has proven interesting. I've read this post: Cannot Logout of Facebook with Facebook C# SDK which seems to mirror the FB docs which indicate I should navigate to https://www.facebook.com/logout.php?next=[redirect_uri]&access_token=[token] However, that doesn't work and silently redirects me back to the facebook home page. My best guess at the moment is facebook doesn't like the "next"