facebook-c#-sdk

Facebook C# SDK, problems getting user email

大兔子大兔子 提交于 2019-11-28 14:44:54
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 posts related in here, but none solve my problem. All the information I need is coming right, only email and birthday is missing. My code in shtml partial page is like this: <div id="fb-root"></div> <fb:login-button id="fblogin" onlogin="window.open('http://' + location.host + '/Facebook/LogOn', '_self')" perms='email'></fb:login-button> <script> window.fbAsyncInit = function () { FB.init({ appId:

Auto Facebook OAuth from ASP.NET C#

醉酒当歌 提交于 2019-11-28 12:59:59
问题 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 回答1: What you need to get

Run solution exe after installtion using installshield

ⅰ亾dé卋堺 提交于 2019-11-28 12:16:24
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 restart. I would like it to run without restart. Is it possible ? What version and edition of InstallShield are you using? Also what project type are you using? (InstallScript, InstallScript MSI, Basic MSI? ) Assuming Basic MSI, InstallShield has a built-in pattern to support this story: 1) Click on the Project Assistant Tab 2) Click on the Installation Interview Icon (Page) 3) Click Yes for "Do you want

Getting FB Page data from facebook using C#

て烟熏妆下的殇ゞ 提交于 2019-11-28 11:47:56
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) . I want to achieve the same thing but for a FB page. I am ready to create a facebook application to achieve this and have the user to give permission to pull the data. Please advice on the above. You need an access token to get page data from Facebook. First get an access token using below URL with your facebook application's parameters: https://graph.facebook.com/oauth/access_token?type=client_cred

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

痴心易碎 提交于 2019-11-28 11:24:55
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 my app access_token and make calls against the Facebook Graph API to retrieve information about age-restricted Pages? No, if a page is restricted demographically (e.g. for alcohol) you MUST use a user access token from a user who meets those restrictions, or a Page access token for the page itself. An app access token will not work for such an API call If the owner of that access token can view the

Decode Signed Request Without Authentication

*爱你&永不变心* 提交于 2019-11-28 10:37:53
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 parse the page JSON object that the signed_request contains. I am looking for the .NET C# equivelent to accomplishing the same type of decode in this PHP example: Seamless way to check if user likes page Imran I am just pasting same answer I have answered in another post. Fans-only content in facebook with asp.net C# sdk You get signed request when your web page is loaded within facebook canvas app;

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

£可爱£侵袭症+ 提交于 2019-11-28 09:29:01
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 (They must select one if they Admin multiple Pages, right?). Once I have that access, what is the best method to use the SDK to post to the Business Page wall? On a related note, can the C# SDK run under ASP.NET 3.5 effectively? Rackspace Cloud Sites is not allowing .NET 4.0 on production servers yet, so I need to see code examples that don't use the 'dynamic' or 'ExpandoObject' keywords. Thanks!

Cannot Logout of Facebook with Facebook C# SDK

一笑奈何 提交于 2019-11-28 08:22:09
问题 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 that they can switch identities, e.g. People sharing a computer at home could then use the software with their own Facebook accounts, but with no chance to switch accounts, it's quite messy. (Have not yet tested switching Windows users accounts as that is simply far too much to ask of the end user and

Form Post with Facebook C# SDK

╄→гoц情女王★ 提交于 2019-11-28 05:48:18
问题 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, CanvasAuthorize(Permissions = "publish_stream")] public ActionResult Enter(FormCollection col) { var fbApp = new FacebookClient(this.CurrentSession.AccessToken); JsonObject result = (JsonObject)fbApp.Get("me"); long FacebookId = long.Parse(result["id"].ToString()); //CODE TO INSERT GOES HERE return View(); } And

how to dynamically increse the height in facebook app

拟墨画扇 提交于 2019-11-28 02:05:19
问题 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 height in facebook app ,give some information about this. 回答1: In Javascript, after you setup the fixed height parameter in your application settings, you can call FB.Canvas.setSize to change the page height. If your page height changes dynamically, you can run FB.Canvas.setDoneLoading to check