Questions tagged [facebook-c#-sdk]

The Facebook SDK for .NET helps developers build web, desktop, phone and Windows Store applications that integrate with Facebook.

facebook-c#-sdk
Filter by
Sorted by
Tagged with
62 votes
7 answers
39k views

Deserializing JSON when sometimes array and sometimes object

I'm having a bit of trouble deserializing data returned from Facebook using the JSON.NET libraries. The JSON returned from just a simple wall post looks like: { "attachment":{"description":""}, ...
mfanto's user avatar
  • 14.3k
13 votes
7 answers
64k views

An attempt was made to access a socket in a way forbidden by its access permissions

I just downloaded C# SDK and ASP.NET MVC sample, modified it to work with 4.2.1. (web config facebookSettings parameters etc.), created my Facebook application and tried to run it. Click to facebook ...
rouen's user avatar
  • 5,062
7 votes
1 answer
9k views

Facebook 60 day access token and Deprecated Offline_Access

Facebook's "Deprecated Offline Access" doc (http://developers.facebook.com/docs/offline-access-deprecation/) states the following: *Server-side OAuth Developers If the access_token is generated from ...
reach4thelasers's user avatar
61 votes
4 answers
29k views

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

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]...
Jonathan Levison's user avatar
17 votes
2 answers
12k views

Is it possible to configure a Facebook app to be used across multiple domains?

We have a website application that is deployed and customised for multiple customers, across different domains, we are developing a Facebook Connect app within this website, so people can see what ...
ginja's user avatar
  • 466
6 votes
5 answers
9k views

Fans-only content in facebook with asp.net C# sdk

Hi i'm developing an application in facebook with c# sdk and i want that the user whom liked my page can only use my application. (Like woobox) I found some solutions in php in this link but there ...
Xenon's user avatar
  • 815
28 votes
1 answer
86k views

Facebook API, Phone Numbers

I am developing a Facebook Application that I need to get all the information of user, including mobile phone. However, even this page claims https://developers.facebook.com/blog/post/446 that ...
Mustafa's user avatar
  • 10.2k
11 votes
2 answers
13k views

How to get Page Access Token by code?

I need to generate a Page Access Token for a webpage that I have, this token will be used by the webpage to post to its Facebook Page feed. This is what I do : Go to Graph API Explorer Choose my ...
Banshee's user avatar
  • 15.6k
7 votes
6 answers
55k views

How to get an access token using C# SDK

I updated the Facebook SDK to 6.0.10 and some code that used to work is not working anymore. I used to post on users' wall use the method below. The class FacebookClient used to take the AppId, and ...
avnic's user avatar
  • 3,301
6 votes
1 answer
67k views

Retrieve Access Token Using Javascript API

This is a follow up to the topic: Passing the signed_request along with the AJAX call to an ActionMethod decorated with CanvasAuthorize Since I couldn't get the signed_request to be anything other ...
Kassem's user avatar
  • 8,206
6 votes
4 answers
4k views

fetch email of a friend in facebook app

How do I fetch the email of my friend programmatically in my facebook application? Does facebook provide this functionality?
Gaurav Sharma's user avatar
5 votes
1 answer
5k views

ASP.NET website authentication with facebook

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 ...
Leandro Faria's user avatar
5 votes
1 answer
8k views

Facebook logout C# SDK

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; ...
Rauland's user avatar
  • 2,994
4 votes
1 answer
13k views

(OAuthException - #2500) An active access token must be used to query information about the current user

string accessToken = GetAccessToken(); string accessKey = accessToken.Split('=')[1]; var client = new FacebookClient(accessKey); dynamic me = client.Get("me"); here is the ...
DarthVader's user avatar
  • 54.2k
3 votes
1 answer
1k views

Is facebook user to user request possible with W8/WP8 c# sdk?

I'm trying to get my mobile game to invite friends from facebook but I'm unable to. I'm using Facebook c# SDK for Windows 8 (hopefully porting when ready to WP8, Android and iOS) but the problem is I'...
KakCAT's user avatar
  • 296
8 votes
2 answers
14k views

Run solution exe after installtion using installshield

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 ...
user1387147's user avatar
7 votes
7 answers
26k views

how to post to facebook page wall from .NET

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 ...
Lari13's user avatar
  • 1,860
6 votes
2 answers
2k views

Use Facebook app access_token to get age-restricted Page data through Graph API?

I have a Facebook application that users can add to their Facebook business Page(s) as a Page Tab app. It doesn't require any extended permissions for the user. I'm wondering if it's possible to use ...
holic87's user avatar
  • 791
5 votes
3 answers
17k views

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

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 (...
Corgalore's user avatar
  • 2,546
3 votes
3 answers
22k views

Getting FB Page data from facebook using C#

In my Desktop application, I want to read the Wall posts,Messages, Like counts etc for a particular Facebook page (not for a facebook user) I went through this post get user data(on stackoverflow). ...
HishHash's user avatar
  • 157
1 vote
2 answers
6k views

Decode Signed Request Without Authentication

Are we able to use the Facebook C# SDK to decode the signed_request parameter that is passed to the Facebook Tab page, without using Authentication? Basically, I am looking for a way to decode and ...
landsteven's user avatar
0 votes
1 answer
3k views

Facebook C# SDK, problems getting user email

I'm using Facebook C# SDK and got a sample on how to set up a login and get some user information to register im my website. However, I stuck in email information. It's always null. I've checked some ...
Rubia Gardini's user avatar
14 votes
3 answers
15k views

Facebook C# SDK and Access Token

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 ...
Jason N. Gaylord's user avatar
8 votes
2 answers
18k views

facebook c# sdk getting started

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 ...
Bubba's user avatar
  • 192
8 votes
4 answers
4k views

How to pass Facebook Id from client to server securely

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 ...
njr101's user avatar
  • 9,559
5 votes
4 answers
23k views

Authentication using Facebook C# SDK

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)....
BeeGeez's user avatar
  • 61
4 votes
5 answers
12k views

Cannot Logout of Facebook with Facebook C# SDK

I think I've read just about everything out there on the topic of logging out of Facebook inside of a Desktop application. Nothing so far works. Specifically, I would like to log the user out so ...
Ryan Smyth's user avatar
3 votes
4 answers
6k views

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

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 ...
Kassem's user avatar
  • 8,206
2 votes
1 answer
1k views

Form Post with Facebook C# SDK

Can anyone point me in the direction of how I can use a form post with the Facebook C# SDK in an MVC app? It's an iframe based Canvas application. I have the following code [HttpPost, ...
Roffers's user avatar
  • 701
2 votes
2 answers
954 views

how to dynamically increse the height in facebook app

I used to FB.Arbiter.inform('setSize', { width: 760, height: 1485 }) increse the height for my facebook app.It's working yesterday, but today is not working.If you know how to dynamically increse the ...
Penigandla Koti's user avatar
1 vote
1 answer
529 views

How do I check if .Post has send successfully in Facebook C# sdk?

I try send the message using the followingcode: //... FacebookClient fbClient = new FacebookClient(appId, appSecret); fbClient.AccessToken = "..."; string to = "user id"; dynamic result = fbClient....
The Mask's user avatar
  • 17.3k
0 votes
5 answers
2k views

Facebook SDK for .NET - Security Warning Issue

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 ...
Pablo Pitty's user avatar
-1 votes
1 answer
3k views

Auto Facebook OAuth from ASP.NET C#

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 ...
v y's user avatar
  • 11
12 votes
2 answers
2k views

C# help required to Create Facebook AppSecret_Proof HMACSHA256

Facebook requires that I create a appsecret_proof: https://developers.facebook.com/docs/graph-api/securing-requests And I have done this using the following code: public string FaceBookSecret(...
davethecoder's user avatar
  • 3,894
11 votes
3 answers
6k views

Facebook web application extended permissions second step dont show

Update2 This post is getting old but still relevant.. Below is whe way I solved it. I marked the other guys answer because I think it answers the question better. I'm calling a similar method(I'am ...
Magnus Karlsson's user avatar
10 votes
2 answers
11k views

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

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 ...
Alex's user avatar
  • 1,977
9 votes
5 answers
20k views

getting user profile picture using facebook c# sdk from codeplex

I am using facebook C# sdk from codeplex and trying to download user's profile picture. I know I can get this from: http://graph.facebook.com/UID/picture?type=large but this URL then posts to a ...
Bruce's user avatar
  • 2,173
8 votes
1 answer
56k views

How to call a particular method every some seconds in c#?

"Robot Game" is the first basic game I developed. The Magenta '#' character is an enemy and it is supposed have a random movement in this map, but its random movement is too fast and I tried to use ...
Hossam Hassan's user avatar
8 votes
1 answer
2k views

Facebook Authentication and strange redirect behaviour

I'm currently testing an OAuth implementation of facebook connect using http://facebooksdk.codeplex.com. I've got a FacebookController with 2 simple actions called LogOn and CallBack. Everything ...
user257938's user avatar
7 votes
1 answer
5k views

C#: Anything wrong with setting HttpContext.Current in a parallel thread?

I'm using a library that relies on HttpContext.Current. The library is Facebook C# SDK, but my question should apply in other scenarios as well. I'd like to use this library from inside of a ...
Johnny Oshika's user avatar
7 votes
6 answers
2k views

How to Handle Facebook Application Requests?

I am working on a Facebook application And I am offering the user to invite his friend to the application using the C# SDK. as shown in Facebook documentation My problem is when the friend of the ...
Hiyasat's user avatar
  • 8,806
6 votes
1 answer
1k views

How to specify a Windows Desktop platform with Facebook App

I have written a windows desktop app (WinForms) in VS2010 .Net C#, which runs on Vista through to Win 8. I am now looking to adding facebook photo uploading functionality to the app using the ...
user3658234's user avatar
5 votes
2 answers
6k views

How do I parse a signed request in Facebook C# SDK?

I'm trying to create a FB credits callback page, and need to parse the signed request coming in. I can write something manually, but it seems like this is something that should be in the SDK somewhere ...
Matt Bell's user avatar
4 votes
2 answers
2k views

Multiple facebook apps under one web application

I'm trying to use the umbraco cms for a few facebook apps. My idea was to have each facebook app in an aspx page in umbraco (these "apps" are very simple, only a few images, maybe a poll in each). But ...
bfi's user avatar
  • 289
4 votes
1 answer
2k views

How to call versioned graph API services in Facebook .NET SDK?

It seems that Facebook now wants us to call versioned endpoints of the Graph API. E.g., https://graph.facebook.com/v2.0/me... Does the Facebook SDK for .NET make versioned calls? Do I/can I do ...
Marc Stober's user avatar
  • 10.4k
4 votes
2 answers
15k views

fql join; can i join two tables with FQL?

I have the following FQL I want to join with user table to add name field! How can I do that?After I test making normal left join I got error message (601 join not possible with FQL). How can I join ...
Tareq Abuzuhri's user avatar
2 votes
2 answers
4k views

Get access token to facebook page - WPF

I am developing a WPF application that needs post on wall of a facebook's Page, and this without login window. Well, I want to get access token for my facebook page, and this is my code. var ...
Marcos's user avatar
  • 40
2 votes
3 answers
2k views

Accessing Facebook C# SDK result Object using .NET 3.5 API?

Consider the following in .NET 3.5 (using the Bin\Net35\Facebook*.dll assemblies): using Facebook; var app = new FacebookApp(); var result = app.Get("me"); // want to access result properties with ...
John K's user avatar
  • 28.6k
2 votes
2 answers
3k views

C# equivalent of file_get_contents (PHP)

As a follow-up to (OAuthException) (#15) The method you are calling must be called with an app secret signed session I want to know what is the equivalent of file_get_contents(). I tried the following ...
Kassem's user avatar
  • 8,206
2 votes
1 answer
1k views

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

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 ...
Gabor's user avatar
  • 1,656

1
2 3 4 5