facebook-c#-sdk

How to pass Facebook Id from client to server securely

ε祈祈猫儿з 提交于 2019-12-18 05:53:53
问题 I have a Facebook canvas app. I am using the JS SDK to authenticate the user on the browser-side and request various information via FB.api (e.g. name, friends, etc.). I also want to persist some additional user information (not held on Facebook) to the database on my server by making an ajax call: { userFavouriteColour: "Red" } To save this on the server and associate with the correct user, I need to know the Facebook uid and this presents a problem. How do I pass the uid from the client to

facebook c# sdk getting started

放肆的年华 提交于 2019-12-17 22:37:40
问题 I would like to write a console application that automatically posts information to my wall once every morning. I have signed up for facebook developer and have a AppID and App Secret I have been trying to play with the C# facebook SDK and looked through several examples. Seems like the examples get a user token - but have to use a browser that is in windows forms. This is an automated process - so I dont want to have a user present. Ive also created some examples using the application token

Run solution exe after installtion using installshield

空扰寡人 提交于 2019-12-17 20:08:03
问题 I want to run my exe after installation using InstallShield. InstallShield completes the setup correctly but do not run the exe. I found another way to add an exe in startup but it runs after restart. I would like it to run without restart. Is it possible ? 回答1: What version and edition of InstallShield are you using? Also what project type are you using? (InstallScript, InstallScript MSI, Basic MSI? ) Assuming Basic MSI, InstallShield has a built-in pattern to support this story: 1) Click on

How can I use the Facebook C# SDK to post on Facebook Pages

我只是一个虾纸丫 提交于 2019-12-17 19:27:08
问题 I have already requested and gained access to 'manage_pages' and 'publish_stream' permissions from a user. How can I use the c# SDK to get permission to post to one of that user's Business Pages wall (They must select one if they Admin multiple Pages, right?). Once I have that access, what is the best method to use the SDK to post to the Business Page wall? On a related note, can the C# SDK run under ASP.NET 3.5 effectively? Rackspace Cloud Sites is not allowing .NET 4.0 on production servers

how to post to facebook page wall from .NET

六月ゝ 毕业季﹏ 提交于 2019-12-17 18:59:23
问题 I've created Facebook page. I have no application secret and no access token. I want to post to this page from my .NET desktop application. How can I do it? Can anyone help please, where can I get access token for this? Should I create a new Facebook Application? If yes, how can I grant permissions to this application to post on page's wall? UPD1: I have no website. I need to post company's news from .NET desktop application to company's Facebook page. All I have is Login/Password for

Facebook logout C# SDK

时光怂恿深爱的人放手 提交于 2019-12-17 17:03:37
问题 Hi I am having trouble trying to logout of facebook using the FB C# SDK. Here's a sample of my test var oauth = new FacebookOAuthClient(); oauth.AppId = fbSection.AppId; string bbc = @"http://www.bbc.co.uk"; var logoutParameters = new Dictionary<string, object> {{ "next", bbc }} ; this.NavigateUrl = oauth.GetLogoutUrl(logoutParameters).AbsoluteUri; The problem is that it´s always redirecting to: http://m.facebook.com/ I'm trying to redirect to an external site in this case bbc.co.uk, as in

Get application id from user access token (or verify the source application for a token)

Deadly 提交于 2019-12-17 10:14:32
问题 I found this question, which has an answer, but facebook changed the token format since then, now it is something like: AAACEdEose0cBACgUMGMCRi9qVbqO3u7mdATQzg[more funny letters]ig8b3uss9WrhGZBYjr20rnJu263BAZDZD In short, you cannot infer anything from it. I also found the access token debugger, which shows the information I am looking for if you paste a token in, which is nice, but does not help me do it programmatically. Point is, if someone gets a token for a user, he can use it to access

Can't figure out how to get access token using facebook c# sdk

不想你离开。 提交于 2019-12-14 04:21:01
问题 I'm currently writing a Facebook app that runs in a page tab. I'm writing it as a simple Web Forms app in C#, using the latest version of the C# SDK pulled from NuGet. The main page tab works fine. I get all the info I need from FacebookWebContext.Current.SignedRequest, and I'm fine there. I'm trying to write a page now that the page admin would use to set up the app, so this is the page that would go under the "Edit URL" in the app setup. All I really want to do is get the currently signed

Facebook : Graph API Callbacks / Real-time API / Public Feed API

心不动则不痛 提交于 2019-12-14 03:50:24
问题 I'm working on a social media project where in I need to follow a few fanpages and listen to all whats happening on that particular page. I for a fact know that there are some data resellers like GNIP & Datasift who can provide me such data. I have tried both trials. What I want to know is that, is there a way to do this via the Facebook public feed & graph APIS, I know with this I'll be restricted only to a open posts, but that's ok for now. I have downloaded the Facebook C# SDK and I'm able

Facebook SDK 4.2.1 - http 404 error, after permissions 'allow'

亡梦爱人 提交于 2019-12-13 20:25:17
问题 I have small problem with http 404 error, after click on 'allow' on facebook permissions page. When I type http://localhost:port address in browser, I get same error: cannot find /facebookredirect.axd/[app name]/default.aspx After granting permissions (and after 404 error), when I want to use my app, I'm running it from my profile. Everything is fine and app works well. 回答1: I had a similar problem some time ago, I changed my web.config file, see the following: I added this to the