facebook-c#-sdk

Replacement for old GetAppUsers call to see a user's friends who use my application?

为君一笑 提交于 2019-11-29 22:40:26
One immensely useful call in the old REST API is Friends.getAppUsers . This call returns all your friends that are using an application. Sadly, this is not in the Open Graph API. There is a good Stack Overflow post about it, Facebook 'Friends.getAppUsers' using Graph API . However, it is possible to use the Graph API to make FQL calls as can be seen here in the Graph API explorer . I thought that maybe I could make the following call using the C# SDK: fb.GetAsync("fql/?q=SELECT uid,username, is_app_user FROM user WHERE uid IN(SELECT uid2 FROM friend WHERE uid1 = me()) AND is_app_user=1");

Auto Facebook OAuth from ASP.NET C#

别来无恙 提交于 2019-11-29 18:16:21
I need help on oAuth authentication to facebook. I am able to do the steps that facebook API mentioned and successfully authenticated, get my profile information as well as post to my news feed. I want my application to login automatically rather than routing to Facebook login page on behalf of a user(i.e. get credentials from db and do auto oauth) . So that the user can type a message on application and click on button should submit a post to facebook page. Thanks What you need to get is an access token. This is a key which allows you continued access to the account until your the token

(OAuthException) (#15) The method you are calling must be called with an app secret signed session

烂漫一生 提交于 2019-11-29 15:27:35
I'm trying to add Test Users to my Facebook app so I could better test the Request dialog and check if I could retrieve the tracking information. But I keep getting the error in the title of this question. Here's my code: [CanvasAuthorize] public ActionResult Add() { var fb = new FacebookWebClient(FacebookWebContext.Current); dynamic result = fb.Post(string.Format("{0}/accounts/test-users", FacebookWebContext.Current.Settings.AppId), new { installed = false}); return Content(result.ToString()); } The weird thing is that while debugging, I've checked the Current context and it seems like

Post On Facebook Page As Page Not As Admin User Using Facebook C# SDK

|▌冷眼眸甩不掉的悲伤 提交于 2019-11-29 15:19:27
问题 I'm developing C# application which manages fan page on Facebook which uses Facebook C# SDK. I've encountered two problems one is connected with posting messages on wall and the other concerns creating events on fan page. Is it possible to post a message on fan page wall as a fan page not a admin user ? Can I programmatically create event on fan page (not as admin but as a fan page) using Facebook C# SDK ? I went through some other tutorials of others SDKs such as Facebook PHP SDK. PHP SDK

Authentication using Facebook C# SDK

旧时模样 提交于 2019-11-29 14:23:12
How can I authenticate with a username(email) and password? The samples provided just calls "authorizer.Authorize()" without credentials (which simply throws an "Invalid URI" format exception for me). Do I need an accessToken and if so, how do I get one? You cannot authenticate with a username and password. You must use OAuth to authenticate a user. Facebook does not permit application developers to collect usernames and password from users. This tutorial should help you: Getting Started with the Facebook C# SDK I am not sure what you are trying to do exactly. But here is my experience and my

Facebook SDK for .NET - Security Warning Issue

和自甴很熟 提交于 2019-11-29 13:03:27
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 in my PictureWeather (Windows Phone 7 & Windows Phone 8) and Picture2Cams (Windows Phone 8) Apps. Had

How to pass Facebook Id from client to server securely

喜欢而已 提交于 2019-11-29 10:10:45
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 the server. Option 1: Add uid to the ajax request : { uid: "1234567890", userFavouriteColour: "Red" }

Facebook C# SDK and Access Token

我只是一个虾纸丫 提交于 2019-11-29 05:53:36
I'd like to be able to authenticate myself (my profile, not just my app) on my own web application using the Facebook C# SDK. Using the Graph API, I can get an access token, but that token does not seem to work properly with the Facebook C# as it seems to be stateless. The error that is thrown is: (OAuthException) An active access token must be used to query information about the current user. I've poked around the Facebook C# SDK and documentation and most of the info I'm seeing is to redirect users to a login page which is not what I'm looking for. Does anyone have a good sample of auto

Replacement for old GetAppUsers call to see a user's friends who use my application?

假装没事ソ 提交于 2019-11-28 19:22:05
问题 One immensely useful call in the old REST API is Friends.getAppUsers . This call returns all your friends that are using an application. Sadly, this is not in the Open Graph API. There is a good Stack Overflow post about it, Facebook 'Friends.getAppUsers' using Graph API . However, it is possible to use the Graph API to make FQL calls as can be seen here in the Graph API explorer. I thought that maybe I could make the following call using the C# SDK: fb.GetAsync("fql/?q=SELECT uid,username,

facebook c# sdk getting started

情到浓时终转凉″ 提交于 2019-11-28 18:59:17
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 - but it does not seem to be able to write to the wall. I wrote the Twitter equivalent very quickly. I