facebook-c#-sdk

OAuth Exception #2500

北城以北 提交于 2020-01-11 04:12:07
问题 I am trying to access my Facebook account with an App access code (because I want indefinate access - I do not want an access code which can expire) I have tried the following code using AppId and AppSecret (which are valid) : string accesstoken = m_AppId & "|" & m_AppSecret; Facebook.FacebookClient fb = new Facebook.FacebookClient(accesstoken); Facebook.JsonObject fbMe = (Facebook.JsonObject)fb.Get("me"); and the last line throws an exception stating OAuth Exception #2500 An active access

Does the Facebook .NET client SDK support universal apps / apps generated via AppStudio?

萝らか妹 提交于 2020-01-11 03:57:19
问题 I created a universal app via Microsoft's AppStudio. I tried adding Facebook authentication to the app by following the 'Scrumptious tutorial' (http://facebooksdk.net/docs/phone/tutorial/). When I run the app on my phone, I can never get to the facebook login page, because the following line: await App.FacebookSessionClient.LoginAsync("user_about_me,read_stream"); always results in the following exception: System.NotImplementedException: Not implemented at Windows.Security.Authentication.Web

Is it possible to use Facebook's oAuth service without leaving users logged in to Facebook after they visit my site?

我是研究僧i 提交于 2020-01-07 05:36:06
问题 I've got a test MVC site set up, and configured to log users in to it using Facebook's authentication systems. Once users log out of my system, how do I ensure that the right thing happens wrt to the users being logged in to Facebook (ie, they revert to whatever state od logged in they were before visiting my site)? I'm relying on the FB api wrappers that are available to download through NuGet. Several of the examples I see include a facebook logout method that can be called through the API,

AJAX Call Does Not Trigger Action Method When Decorated With CanvasAuthorize

此生再无相见时 提交于 2020-01-06 05:27:26
问题 I am trying to share items on Facebook by posting them on the wall via my FB app. I setup everything on the client side and the server side as well (ASP.NET MVC3), but I noticed that when the ActionMethod is decorated with the CanvasAuthorize attribute, the method does not get triggered at all. So is there anything I could do? P.S: I checked the posted data by the AJAX call and everything seemed fine on that end. Moreover, if I comment the [CanvasAuthorize] line, the method gets triggered and

Iframe Canvas application with Master Page

◇◆丶佛笑我妖孽 提交于 2020-01-05 04:04:04
问题 I am developing an Iframe-Canvas Application. I am using Master Page to gain permission access & display few details, that works good. Then on content Page I want to display a textbox & linkbutton so user can post status on their wall & here I get error (OAuthException) An active access token must be used to query information about the current user. here's my code : Site.master.cs protected void Page_Load(object sender, EventArgs e) { var auth = new CanvasAuthorizer { Permissions = new[] {

Facebook C# SDK trouble getting me/accounts

杀马特。学长 韩版系。学妹 提交于 2020-01-03 03:03:08
问题 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

FBConnect's handleOpenURL Method Not Called by my AppDelegate

白昼怎懂夜的黑 提交于 2020-01-01 06:27:50
问题 I have implemented the FBConnect SDK into my app, and it works perfectly on the simulator. I then modified my app's .plist file appropriately, and added the necessary method to my AppDelegate for when Facebook is installed on the device: - (BOOL)application:(UIApplication *)application handleOpenURL:(NSURL *)url { NSLog(@"handleOpenURL Method was called and sent the following:"); NSString *urlString = [NSString stringWithContentsOfURL:(NSURL *)url]; NSLog(@"URL String: %@", urlString); return

FBConnect's handleOpenURL Method Not Called by my AppDelegate

一个人想着一个人 提交于 2020-01-01 06:27:13
问题 I have implemented the FBConnect SDK into my app, and it works perfectly on the simulator. I then modified my app's .plist file appropriately, and added the necessary method to my AppDelegate for when Facebook is installed on the device: - (BOOL)application:(UIApplication *)application handleOpenURL:(NSURL *)url { NSLog(@"handleOpenURL Method was called and sent the following:"); NSString *urlString = [NSString stringWithContentsOfURL:(NSURL *)url]; NSLog(@"URL String: %@", urlString); return

Facebook SDK for .NET - Security Warning Issue

南笙酒味 提交于 2019-12-29 08:22:49
问题 everyone. Today I encounter the following message in my Windows Phone App: Success SECURITY WARNING: Please treat the URL above as you would your password and do not share it with anyone. This happens when my users Login through the Web Browser Control, which get the Login URL from the GetLoginUrl method from the Facebook SDK for .net. This problem is not only happening in my Apps, I've seen users from other Apps having the same problem. Anyone found a solution to this? I'm running this SDK

ASP.NET website authentication with facebook

浪尽此生 提交于 2019-12-28 06:36:47
问题 I've seen a lot of documentation about integration between ASP .NET web sites and Facebook, but I haven't found a simple working example, even using Facebook C# SDK. All I want is a "login with Facebook" example, and to get basic user information (such as name, email and photo). Can you guys help me please? Thanks a lot! 回答1: as you say using Facebook C# SDK , then here is path and some code for canvas application: 1- Create your web application from visual studio 2- install nuget and get by