facebook-c#-sdk

facebooksdk.net publish not working - can't get LoginButton.CurrentSession to publish to

随声附和 提交于 2019-12-02 04:42:35
I've got what seems to be a pretty simple problem - I'm trying to use the facebooksdk.net to publish to a users feed. First, I install with the following command, which gets me Facebook.Client version 0.9.91-alpha: Install-Package Facebook.Client -pre Next, I have a LoginButton (and I'm able to successfully login) <fbc:LoginButton x:Name="_loginButton" SessionStateChanged="_loginButton_SessionStateChanged" Margin="0,15" /> Now, I want to post to the feed, so I use the following code, copied directly from the facebooksdk.net site for publishing: private async void PublishStory() { await

Error when installing NuGet package 'Facebook 6.1.2' Windows 8 App

拜拜、爱过 提交于 2019-12-02 04:12:39
问题 When trying to install the Facebook 6.1.2 NuGet into my Windows 8 application I get the following message: PM> Install-Package Facebook Successfully installed 'Facebook 6.1.2'. Successfully uninstalled 'Facebook 6.1.2'. Install failed. Rolling back... Install-Package : Could not install package 'Facebook 6.1.2'. You are trying to install this package into a project that targets '.NETCore,Version=v4.5', but the package does not contain any assembly references that are compatible with that

(Facebook C# SDK) Problem getting an access token

こ雲淡風輕ζ 提交于 2019-12-02 03:54:41
问题 I'm quite new to the Facebook C# SDK (5.0.3) which probablly is the reason for this question. Basically, I'm trying to get the current users profile, email, photo, etc etc. Below you'll find the code to my two pages (MyLogin.aspx and landingpage.aspx). I use web forms buy the way. The first page displays a login button, and then redirects to the landingpage. See my comments in the code for further information. I get various exceptions I don't know how to solve. If you have any guidance that

C# equivalent of file_get_contents (PHP)

两盒软妹~` 提交于 2019-12-02 00:16:34
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 but I got illegal characters in path error. public ActionResult About() { var fb = new FacebookWebClient(FacebookWebContext.Current); var tokenUrl = "https://graph.facebook.com/oauth/access_token?client_id=" + FacebookWebContext.Current.Settings.AppId + "&client_secret=" + FacebookWebContext.Current.Settings.AppSecret + "&grant_type=client_credentials"; var objReader = new StreamReader(tokenUrl);

Facebook SDK for .NET and Graph API Explorer news feed mismatch

喜你入骨 提交于 2019-12-02 00:16:07
And application is using facebook sdk to get user newsfeed via client.Get(request_string) where request_string = "/me/home<some_filters>" . And I discovered that sdk and api exprorer return different results with the same request string. Why can it happen? Frank D This is similar to this question. Some posts not visible on the feed through Graph API /me/home The reason is Facebook "scores" nodes to derive the most "Top Story". Low scoring nodes are by default not visible. You can force all nodes with /me/home.filter(owner)<some_filters> There is no documentation on WHY this actually works, but

Error when installing NuGet package 'Facebook 6.1.2' Windows 8 App

偶尔善良 提交于 2019-12-01 23:43:27
When trying to install the Facebook 6.1.2 NuGet into my Windows 8 application I get the following message: PM> Install-Package Facebook Successfully installed 'Facebook 6.1.2'. Successfully uninstalled 'Facebook 6.1.2'. Install failed. Rolling back... Install-Package : Could not install package 'Facebook 6.1.2'. You are trying to install this package into a project that targets '.NETCore,Version=v4.5', but the package does not contain any assembly references that are compatible with that framework. For more information, contact the package author. Is there anyway to fix this issue? Details at

(Facebook C# SDK) Problem getting an access token

五迷三道 提交于 2019-12-01 22:55:25
I'm quite new to the Facebook C# SDK (5.0.3) which probablly is the reason for this question. Basically, I'm trying to get the current users profile, email, photo, etc etc. Below you'll find the code to my two pages (MyLogin.aspx and landingpage.aspx). I use web forms buy the way. The first page displays a login button, and then redirects to the landingpage. See my comments in the code for further information. I get various exceptions I don't know how to solve. If you have any guidance that allows me to move forward, I am very grateful for that. So, heres the code ... MyLogin.aspx.cs protected

Logging out from facebook using facebook c# sdk in WP7

此生再无相见时 提交于 2019-12-01 13:15:50
I want to implement logout from facebook using facebook C# sdk in my windows phone app My primary question is how do we logout using Facebook C# SDK in WP7 I found this article in search Article link there he is trying to find the logout url using regex, but that did not working in my app when i try that the browser navigated event is going into infinite loop you can share any samples/posts related to facebook logout in windows phone 7. I want logout should happen with out user intervention, after he clicks on a button he should looged out from facebook and from next time he should see the

Facebook C# SDK ASP.Net 3.5 Examples

三世轮回 提交于 2019-12-01 12:28:13
问题 I've been asked to develop a facebook application that allows users of their current system to find each other using a this facebook app. Unfortuantely their requirements are that it has to be build in ASP.NET 3.5 (Easier for their clients distribution purposes). I am a experienced PHP developer although I have in the past used C# for windows applications. I have found a facebook api that looks suitable - http://facebooksdk.codeplex.com/. The problem I am having is that all availble examples

Error with FQL query with library 5.4.1

强颜欢笑 提交于 2019-12-01 11:47:41
问题 A few months ago I developed an application to retrieve the counters of my insights Facebook pages. This application works perfectly with the library "Facebook C# SDK" version 5.0.40. Now I want to use the last library version 5.4.1 but my application no longer works. I do not understand why. I use the following code : var fb = new FacebookClient(m_accessToken); fb.GetCompleted += (o, e) => { if (e.Error == null) { dynamic result = e.GetResultData(); // e.UserState contains the 'p_date'