facebook-c#-sdk

Exception when calling SuspensionManager.SaveAsync()

女生的网名这么多〃 提交于 2019-12-10 15:26:48
问题 I'm building a Windows 8 app and have come up with the following exception: SuspensionManager failed When running the following code: private async void OnSuspending(object sender, SuspendingEventArgs e) { var deferral = e.SuspendingOperation.GetDeferral(); await SuspensionManager.SaveAsync(); deferral.Complete(); } The exception occurs on the third line of the method, and it doesn't really give any detail. I've failed to find anything useful regarding this on the net. Has anyone seen this

facebook c# api, video getting uploaded but its PUBLIC

可紊 提交于 2019-12-10 12:18:42
问题 I am able to upload video from the code below. But the video isn't PRIVATE. I need video to be PRIVATE or in other words it should be SELF. FacebookMediaObject mediaObject1 = new FacebookMediaObject { FileName = pbmFile.fullPath, ContentType = Path.GetExtension(filePath) }; byte[] fileBytes1 = System.IO.File.ReadAllBytes(filePath); mediaObject1.SetValue(fileBytes1); IDictionary<string, object> upload1 = new Dictionary<string, object>(); upload1.Add("image", mediaObject1); staticGlobalConst

facebook registration and authentication

狂风中的少年 提交于 2019-12-10 11:56:42
问题 i'm using the registration plugin for my website http://developers.facebook.com/docs/plugins/registration i want permission to post users's wall is there any way that on the same log in ( on the registration ) the user will promp to agree for the permissions (authentication)? thanks ! 回答1: From the Facebook Developer Forum: There is no way at the moment to requests extended permissions through the Registration Plugin so you'll need to request it afterwards. It goes on to acknowledge that this

How to login to facebook using the Facebook C# SDK

狂风中的少年 提交于 2019-12-10 11:14:56
问题 I'd like to post messages to a group wall without asking user for login information -I'd like to do it programmatically, I can use my user/pass if necessary-. ¿Is it possible to do this without showing the user the login screen? Note: I'm working with Facebook C# SDK (http://facebooksdk.codeplex.com/) under ASP.NET. Thanks 回答1: No you cannot do this. Facebook prevents this sort of behavior to prevent spamming on peoples walls from fake accounts. You will always have to go through the initial

use myfakesite.com instead of localhost in IIS 7

∥☆過路亽.° 提交于 2019-12-10 09:27:10
问题 I followed this steps: What I did is edit this file: C:\Windows\System32\drivers\etc\hosts I added a line: 127.0.0.1 myfakesite.com Then I went to the Facebook edit app page, specifically the "Web Site" setting and entered Site Url: http://myfakesite.com Domain: myfakesite.com Instead of running IIS Express, I had to run full IIS and enable myfakesite.com as one of the bindings. Here is how you do it: 1) Launch Internet Information Services Manager 2) Navigate to the "Default Web Site" 3)

Facebook SDK Proxy setting C#

感情迁移 提交于 2019-12-10 04:22:52
问题 I use Facebook SDK .net but I use proxy with authentication to connect to the internet I get the error (407) (407) proxy authentication required how I can set the authentication on Facebook SDK 回答1: There is a static method in FacebookClient which allows you to set it globally. [EditorBrowsable(EditorBrowsableState.Never)] public static void SetDefaultHttpWebRequestFactory(Func<Uri, HttpWebRequestWrapper> httpWebRequestFactory) You might not see it in the intellisense as it is hidden by

Share using Facebook C# SDK

半腔热情 提交于 2019-12-10 00:58:22
问题 I am new to the Facebook C# SDK. I hope you are able to give me some guidance. I would like to be able Share some content on my site on Facebook. Here's what I would like to do: On my site, when the user clicks 'Share on Facebook', I would like to send a few pieces of information -- A thumbnail image, A title row, and some content to their facebook wall. I have seen other sites do this seemlessly. I am hoping this SDK can do it to. I am using Facebook 4.2.1 SDK. Thanks in advance for your

Passing the signed_request along with the AJAX call to an ActionMethod decorated with CanvasAuthorize

為{幸葍}努か 提交于 2019-12-09 23:39:10
问题 This is a follow-up to AJAX Call Does Not Trigger Action Method When Decorated With CanvasAuthorize So I found the following links and it seems that this is a common problem: http://facebooksdk.codeplex.com/discussions/251878 http://facebooksdk.codeplex.com/discussions/250820 I tried to follow the advice by prabir but I couldn't get it to work... Here's my setup: I have the following snippet in the page where the button that triggers the whole post to facebook is located: @if (!string

Change picture caption thru Graph Api C# Facebook

我的未来我决定 提交于 2019-12-09 18:31:36
问题 I need to know if it's possible to change the caption of a picture uploaded in facebook. I could upload without trouble, but now I want to change the caption using the facebook graph api. Is it possible? Thanks 回答1: It looks like the name field is what you want to POST to, in order to change the caption: https://developers.facebook.com/docs/reference/api/photo/ However, they don't support writing to it. The things you can write are listed here: https://developers.facebook.com/docs/reference

Where did FacebookOAuthClient go?

社会主义新天地 提交于 2019-12-09 17:16:07
问题 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? 回答1: 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