facebook-c#-sdk

mobile version of Facebook app going into redirect loop

99封情书 提交于 2019-12-21 22:00:48
问题 I have developed a Facebook app using the C# SDK and it is working fine. Now I want to also enable it on mobiles, so I tried to set the "mobile url" to the same one as my canvas url (which is a cloudapp.net address). However, when I try to access it from a mobile, it seems to go into a redirect loop involving my canvas url, the apps.facebook url and the m.facebook/apps url. Sometimes it goes out of the loop and I get the facebook error message saying : "the mobile version of the app is

Integrating facebook login and facebook c# SDK - NOT a facebook app

笑着哭i 提交于 2019-12-21 19:52:11
问题 I downloaded the samples and the 5.0.3 beta of the SDK, and pretty quickly got a facebook app up and running inside facebook - great and super easy. However, I want to use facebook only as an authorization-mechanism, and I cannot figure out how to do that from the examples and documentation (actually I was unable to find any documentation apart from a few examples here and there). I found this piece of code without context here: Link protected void Page_Load(object sender, EventArgs e) { if (

Post an object of type Reference

。_饼干妹妹 提交于 2019-12-21 19:44:00
问题 I have had this problem for some time now and I have seen others have it as well. It has to deal with posting your custom objects that you create in Open Graph to post with your application. I am having this problem primarily on all platforms, but right now let's say I am using Android. If someone has accomplished this in C# or on IOS or even in PHP please post your answer. An Example: I have an object that posts a meal to Facebook. Let's say its properties are the following. mealName =

What is the current status of Facebook's .Net SDK?

点点圈 提交于 2019-12-21 19:42:42
问题 So I need to do some API interaction with Facebook from .NET, i want to know how is this being handled nowadays. The SDK has been recommended a few times, but any sort of information seems to indicate that there is no one doing anything with that project, like the website is dead, and last Facebook and twitter updates are from 2015. I just wanted to see if this is still the way to go, or if I should just ditch it and look somewhere else. Thanks! 来源: https://stackoverflow.com/questions

Starting multiquery in client throws parser error

做~自己de王妃 提交于 2019-12-21 06:56:04
问题 I have a following problem in c# SDK: when I try to run multiquery in my desktop application with following string (searching for pairs of IDs of mutual friends) I get a parser error: string strCommonFriendsQuery = "{ \"user_friends\":\"SELECT uid2 FROM friend WHERE uid1 = me()\", \"mutual_friends\":\"SELECT uid1, uid2 FROM friend WHERE uid1 IN (SELECT uid2 FROM #user_friends) AND uid2 IN (SELECT uid2 FROM #user_friends)\" }"; fb.Query(strCommonFriendsQuery); Parser error: unexpected '{' at

Programatically log in to facebook and post from server side

穿精又带淫゛_ 提交于 2019-12-21 06:26:46
问题 I want to connect my web application with the facebook business page. Each time I add a new product to the page I want to post it on facebook wall. I have a facebook application and the page owner username and password. Can I automatically authenticate with the user, pass to facebook and send the post request from server side only? Usually I am logged in with another facebook account when I add products. Also I would like to post when another page user add a product. 回答1: You can post to

How to post picture on the wall?

元气小坏坏 提交于 2019-12-21 05:21:11
问题 Does anybody sucessfuly post picture to current user's wall? This is not working, if picture argument is existing picture url post is not shown! I'm using latest FB C# SDK 5.0.8 Beta ... var args = new Dictionary<string, object>(); args["name"] = "My App"; args["link"] = @"http://apps.facebook.com/test/"; args["caption"] = "My Caption"; args["description"] = "My Description"; args["picture"] = @"http://www.test.com/test.jpeg"; args["message"] = "My Message"; args["actions"] = ""; FbClient

Facebook Real Time Update return only “changed_fields”:[“feed”] and not the actual comment

北城余情 提交于 2019-12-21 05:07:23
问题 I'm trying to implement Facebook Real Time Update in a proper manner. (https://developers.facebook.com/docs/reference/api/realtime/). Everything is done according to the instructions given in this page, but the returned JSON from Facebook is missing interesting information. The JSON is for example: {"object":"user","entry":[{"uid":"1408932149","id":"1408932149","time":1370253930,"changed_fields":["feed"]}]} But the event that induced the event was a comment on a facebook-page. I want more

Integration of Facebook and asp.net membership

让人想犯罪 __ 提交于 2019-12-20 10:57:36
问题 I want to allow users to sign up to my website using Facebook. I already use the JS SDK on the client side for authentication and authorization and the C# sdk on the server side to get all the information I need to complete the user profile. My issue is that I order to allow the user to login with his facebook account, I need to create a username and password for him in my membership provider. I already decided I'll use the Facebook email as the username, but what can I do about the password?

How to connect to facebook, and debug facebook application using C# SDK

此生再无相见时 提交于 2019-12-20 10:56:07
问题 I'm really struggling trying to find something that actually works for getting the basics up and running. Even the tutorial apps that came with the SDK seems to have to be uploaded in order to work, so there's no easy way to debug and test it locally. Anyone got a link to a working sample I could work off of? Cheers! This is what I currently have in my aspx. There's nothing in the code-behind: <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="FacebookTest