facebook-c#-sdk

fetch email of a friend in facebook app

会有一股神秘感。 提交于 2019-12-28 06:36:07
问题 How do I fetch the email of my friend programmatically in my facebook application? Does facebook provide this functionality? 回答1: The answer is no, Facebook does not provide this functionality. Facebook tries to protect the privacy of its users, and therefore user email addresses are explicitly not available. The only way to email a user is to prompt them to grant you extended email permissions via a Facebook prompt. If they grant you the permission, you can then use the notifications

Ajax based web application - Mocking a real request after facebook login

混江龙づ霸主 提交于 2019-12-25 09:40:45
问题 I'm building an ajax based web application which lets Facebook users who login to the application, enjoy certain advanced options of the application, like saving their settings, etc` (the user doesn't HAVE to login to his facebook account, but it gives him extra privileges). I'm using the C# Facebook SDK on ASP.NET WebForms platform. The entire application is AJAX based, which means that after the user decides to log in (using Facebook JS API) and reload the page, the entire communication

How to use fql.multiquery with C# SDK

我的未来我决定 提交于 2019-12-25 08:48:00
问题 I am using the facebook-c#-sdk with VB. my code: dim facebook As New FacebookApp() dim queries as string=" ""2011-4-13"" : ""SELECT metric, value FROM insights WHERE object_id=173249789387842 AND metric='page_active_users' AND end_time=end_time_date('2011-4-13') AND period=period('day')"",""2011-4-14"" : ""SELECT metric, value FROM insights WHERE object_id=173249789387842 AND metric='page_active_users' AND end_time=end_time_date('2011-4-14') AND period=period('day')""" dim oFQLResult As

Post picture to facebook page album

廉价感情. 提交于 2019-12-25 07:24:17
问题 I have a facebook page with an user as administrator. This facebook user is authenticated successfull via c# facebook sdk. Posting to the photos tab of the page works for me: FacebookClient fb = new FacebookClient(_accessToken); fb.AppId = APPID; fb.AppSecret = SECRETID; dynamic parameters = new ExpandoObject(); parameters.message = "test1"; var bytes = File.ReadAllBytes(@"C:\temp\excel.jpg"); parameters.source = new FacebookMediaObject { ContentType = "image/jpeg", FileName = Path

How can i get my friends using my facebook App with graph api asp.net

拟墨画扇 提交于 2019-12-25 03:45:39
问题 Hi i'm using Facebook C# SDK i can get my friends like; JsonObject friends = (JsonObject)facebook.Api("me/friends?"); But i couldn't get my friends which uses my application how can i get them? Any idea? Thanks, 回答1: this is a bit confusing statement But i couldn't get my friends which uses my application how can i get them? Well i have been through situation like this.I made an application and called upon my friends to see that on my login it was working very well but on my friends login

How to post photo to album in facebook graph api Asp.NET

谁说胖子不能爱 提交于 2019-12-25 03:24:25
问题 i wrote an application for facebook but i couldn't upload image to album that i created, code is in below, thanks for your help. Facebook.FacebookAPI api = new Facebook.FacebookAPI(GetAccessToken()); Dictionary<string, string> album = new Dictionary<string, string>(); album.Add("name", "Test Album"); album.Add("message", "Message here!"); JSONObject result = api.Post("me/albums", album); string AlbumId = result.Dictionary["id"].String; Dictionary<string, string> photo = new Dictionary<string,

Facebook Silverlight application invalid method (HTTP verb)

做~自己de王妃 提交于 2019-12-25 00:25:45
问题 Hi I made a simple application in Silverlight to facebbok with the facebook C# SDK, and it runs fine in a localhost. I have published on a server and know start the problems. When I try to run the application from the facebook I get the this messege (405 - HTTP verb used to access this page is not allowed.) anyone have any ideias of what is the problem ?? thanks 回答1: That sounds like server/IIS/Web server configuration. Try hosting the web site in an iframe locally and see if you can get

Facebook C# SDK Upload Photos with Tagging

淺唱寂寞╮ 提交于 2019-12-24 22:18:51
问题 How to Tagging a photos using facebook c# sdk. This is my code (Upload image): var fbApp = new FacebookClient(Session["xAccessToken"].ToString()); string xfilename = MergedCombinedImage.ImageUrl; xfilename = xfilename.Replace("images/temp/", ""); var fbUpl = new Facebook.FacebookMediaObject { FileName = xfilename, ContentType = "image/jpg" }; var bytes = System.IO.File.ReadAllBytes(Server.MapPath(MergedCombinedImage.ImageUrl)); fbUpl.SetValue(bytes); var photoDetails = new Dictionary<string,

how to get logout url in Facebook C# SDK?

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-24 16:57:52
问题 I tried this: public string GetLogoutUrl() { return String.Format("https://www.facebook.com/logout.php?next=http%3A%2F%2Fwww.google.com.br&access_token={0}", result.AccessToken); } then: webBrowser.Navigate(GetLogoutUrl()); Not worked. The user is redirected to facebook home page and not do logout. how I do this? Thanks in advance. 回答1: Also make sure the next url is belongs to your site url specified in the fb app settings. next=http%3A%2F%2Fwww.google.com.br 回答2: Home page here I assume it

Install C# library without the Package Manager Console

。_饼干妹妹 提交于 2019-12-24 16:22:21
问题 Is there any way to install C# libraries other than using the Package Manager Console? I want to use the Facebook C# SDK but I'm using Visual Studio Express for WP and I don't have the PMC. I found this guide on nuget, but I'm going to have to do it some other way. Any ideas? 回答1: It is mentioned in README.md file on how to download Facebook C# SDK .dll files without using NuGet Package Manager Console at https://github.com/facebook-csharp-sdk/facebook-csharp-sdk Binaries for Facebook C# SDK