facebook-c#-sdk

Facebook API - Invalid signed request. (Invalid signature.)

百般思念 提交于 2019-12-06 00:11:04
问题 I'm tryng to use Facebook authentication at http://landlordscores.co.uk/account/login.aspx but after logging in with facebook, the callback page displays "Invalid signed request. (Invalid signature.) ". The app ID and secret are correct and no other information seems to be logged. This happens every time I try to log in with facebook. Edit: To make the call, I'm using pretty much the exact code as the sample. In the markup: <iframe src="<%= this.RegistrationUrl %>" scrolling="auto"

How to renew Facebook access token using its C# SDK

删除回忆录丶 提交于 2019-12-05 21:40:21
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 . Here is what I use to get a longer expiring token FacebookClient fbcl = new FacebookClient(atoken); fbcl.AccessToken = //your short access token; fbcl.AppId = //your app id; fbcl.AppSecret = // your app

Facebook fan page app pass string to app_data and retrieve

ぃ、小莉子 提交于 2019-12-05 08:07:10
问题 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

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

点点圈 提交于 2019-12-05 04:31:09
问题 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

C# Facebook SDK extend an accesstoken to 60 days

跟風遠走 提交于 2019-12-05 04:23:04
问题 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

Facebook Application that Searches for nearest Place

时间秒杀一切 提交于 2019-12-05 02:42:58
问题 Is it possible to create a facebook application that would display a list of the nearest place of interest location? Much like the current existing Urbanspoon Application (http://www.urbanspoon.com/c/338/Perth-restaurants.html) but on facebook. Can somebody please point me to the right direction :) 回答1: Get place ID for user's current location: SELECT current_location FROM user WHERE uid=me() Get coordinates for that place ID: https://graph.facebook.com/106412259396611 Get nearby places:

Facebook c# sdk get users email

浪子不回头ぞ 提交于 2019-12-05 02:10:33
问题 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> { {

Finding out if a Facebook page is liked by a user. Using the Facebook C# SDK

自古美人都是妖i 提交于 2019-12-05 01:34:12
问题 I'm trying to build a Facebook 'fangate' tab or 'reveal' tab for a Facebook page. You know how it goes - when a user visits the page, they are shown one bit of content if they haven't yet clicked 'Like' and another once they have. I'm not a PHP guy so I'm attempting to do this with the Facebook C# SDK (http://facebooksdk.codeplex.com) in Visual Studio 2010. I'm fairly new to .NET too so I'm not doing so well with this! I have to admit I've been cutting and pasting code from all over the place

How does paging work on the C# Facebook sdk

心不动则不痛 提交于 2019-12-04 23:52:14
问题 Cannot find any documentation for this... Currently using the following code to get a list of my photos: FacebookApp fb = new FacebookApp(accessToken); dynamic test = fb.Get("me/photos"); I'm cycling through the first 25 photos that it returns. Simple. Now how do it get it to return the next 25? So far I've tried this: FacebookApp fb = new FacebookApp(accessToken); string query = "me/photos"; while (true) { dynamic test = fb.Get(query); foreach (dynamic each in test.data) { // do something

No access token facebook application authentication

試著忘記壹切 提交于 2019-12-04 21:05:01
I'd like to show my facebook wall posts on my website. So i don't want to authenticate users with a dialog, to grant them some rights, i just want to show him my wall with comments (no ability to add comment just read only access). As i know there isn't unexpired tokens now so is it possible to access just my data without requesting token every time it expires? I'm using asp.net mvc but i think this sultion doesn't depend at platform at all. You should: Make your Facebook Posts public Call the API endpoint: https://graph.facebook.com/ {your_id}/feed?access_token={app_access_token} with your