facebook-c#-sdk

Get Facebook wall posts from fan page or group

风流意气都作罢 提交于 2019-12-08 07:35:53
问题 I use the facebook api wrapper from https://github.com/facebook/csharp-sdk, then I have created a facebook application and I use the Access Token from the facebook application but still I can't get the wall posts from a fan page I have created? It seems like I need to authenticate with a user even though I use the access token? 回答1: The user always has to grant you permission to read his wall posts, there's only some basic information publicly available. 回答2: If you're just accessing this one

Azure Mobile Service LoginAsync with Facebook Token is Unauthorized

痴心易碎 提交于 2019-12-08 06:38:14
问题 I'm following the post at http://ntotten.com/2013/03/14/using-windows-azure-mobile-services-with-the-facebook-sdk-for-windows-phone/ and I can successfully get a Facebook access token. However when I submit the access token as a JObject to the MobileServiceClient.LoginAsync(provider, token) method I get an IvalidOperationException (Unauthorized) . The Code, Request and Response (from the exception) are below... Code private async Task Authenticate() { while (user == null) { try { fbSession =

Post to wall fail when a picture is added

久未见 提交于 2019-12-08 06:05:40
问题 I've managed to post to a user wall, but when i try to add a picture to the parameters of the post, the post fails and the Result is null. I think that i´m doing everything alright, but i could use some help. Thanks in advance! IDictionary<string, object> parameters = new Dictionary<string, object>(); parameters["access_token"] = fbAccessToken; parameters["name"] = "my picture"; parameters["message"] = "this is a picture uploaded from my the facebook sdk"; parameters.Add("picture", "http://t2

Is it possible to authenticate as an application instead of a user with the Facebook C# SDK?

别等时光非礼了梦想. 提交于 2019-12-08 05:33:36
问题 Facebook's OAuth implementation allows you to authenticate as an application (rather than as a user). Is it possible to achieve this with the Facebook C# SDK? Rich 回答1: Looks like the Facebook C# SDK doesn't help you with obtaining an access token as a user or an application. Based on this comment on the Facebook C# SDK: This SDK does not include a method of getting a token from a user, as the best method will depend on what type of application is using it. Your pretty much on your own. 回答2:

get an access token using Facebook C# SDK

末鹿安然 提交于 2019-12-08 03:08:14
问题 Hi i am using the following code to get access token from facebook using C# SDK var fb = new FacebookClient(); dynamic result = fb.Get("oauth/access_token", new { client_id = "clientId", client_secret = "clientSecret", redirect_uri = "redirectUri", code = "code" }); return result.access_token; the above code works perfect most of the time but some times i gets this error (OAuthException - #100) Invalid verification code format. how to fix this problem?? 回答1: What is your project type :

fb.Get() doesn't exist?

China☆狼群 提交于 2019-12-08 02:34:31
问题 I have the code below that I got from off of Prabir's Blog (codeplex documentation) and the fb.get() method does not exist...I was able to test all the way up to authentication where it takes me to the fb login page and now I am trying to do the fb.Get("/me"); I am new to this and am just following the guide... private void PhoneApplicationPage_Loaded(object sender, RoutedEventArgs e) { string appId = "xxx"; string[] extendedPermissions = new[] { "publish_stream", "offline_access" }; var

Programatically add and youtube video to wall post

旧巷老猫 提交于 2019-12-07 22:28:31
问题 How can i embeded an youtube video in the facebook wall? I tried to pass the video url using the "source" member, but didn't work. After checking the json of a feed posted manually i see that there is some handling by FB's server code to make it happen. The feed shows me this: "id": "100001460921297_170524112986785", "from": { "name": "Fw As", "id": "100001460921297" }, "message": "In SBSR 16 July 2010 Portugal", "picture": "http://external.ak.fbcdn.net/safe_image.php?d

How to renew Facebook access token using its C# SDK

烂漫一生 提交于 2019-12-07 15:27:31
问题 I'm using the Facebook C# SDK to fetch as much data, e.g. posts, comments, user info, from Facebook as possible, but my program stops after my access token expires after certain perior of time, and I have to restart the program. I got the access token from the Facebook developer tools, but how can I renew the token? It is TOTO in http://csharpsdk.org/docs/web/handling-expired-access-tokens. 回答1: Here is what I use to get a longer expiring token FacebookClient fbcl = new FacebookClient(atoken)

Facebook C# SDK trouble getting me/accounts

我的未来我决定 提交于 2019-12-07 00:38:38
I'm trying to write a windows service that will post to my Facebook Page with results when it runs. I just downloaded Facebook C# SDK v6.0.10.0 and writing the windows application in .Net 4.0 I created a facebook application account and got the AppID and Secret code needed. The end goal would be to have this windows service post on my facebook page wall as the page and not the application user. I keep getting an error when I go to get the accounts for my facebook application. string strAppID = "my app api id"; string strSecret = "my app secret code"; Facebook.FacebookClient fbClient = new

Get permissions for a Facebook Event's Wall

筅森魡賤 提交于 2019-12-06 16:13:34
I'm integrating Facebook Event walls on my site using the JS API. Some events have "open" Walls (in that any logged-in user can post to them), some have Walls that will only accept posts after a user RSVPs, and others have their Wall turned off completely. Is there a way to determine which is the current setting so I can hide the comment box when appropriate? The documentation does not seem to suggest I can: http://developers.facebook.com/docs/reference/api/event/ Indeed it dose, if you open link in documentation, a example of graph call, you get this json which cointains privacy inforamtion: