facebook-c#-sdk

Facebook 60 day access token and Deprecated Offline_Access

江枫思渺然 提交于 2019-11-27 08:46:46
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 a server-side OAuth call, the resulting access_token will have the longer expiration time. If the call is made while there is still a valid access_token for that user, the returned access_token from this second call may be the same or may have changed, but in either case the expiration time will have been reset. Again, calling this multiple times during the same day will result only in the first

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

徘徊边缘 提交于 2019-11-27 06:17:02
问题 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? 回答1: 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

Decode Signed Request Without Authentication

匆匆过客 提交于 2019-11-27 03:42:02
问题 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 回答1: I am just pasting same answer I have answered in another post. Fans-only content in

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

荒凉一梦 提交于 2019-11-26 23:37:59
问题 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'm confused about the facebook API paremeters: This is my code: var fb = new FacebookClient (accessToken); dynamic parameters = new ExpandoObject(); parameters.appId = facebookAppId; parameters.message = "This is a test!"; parameters.to="friendID1,friendID2,..."; string request=String.Format ("/me

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

折月煮酒 提交于 2019-11-26 23:13:48
问题 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 their friends are doing through our sites. I've set the site url and canvas url in my Facebook app to my localhost for debugging, I was wondering, what if I wanted to use this application across multiple domains? Will facebook only allow postback to one domain per application? Is it possible to

How to get Page Access Token by code?

╄→尐↘猪︶ㄣ 提交于 2019-11-26 23:04:07
问题 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 app from the dropdown Click Get Access Token Choose correct permissions( manage_pages / user_events ) To get the Page Access Token I have to run me/accounts in the Graph API Explorer. This will show all the pages I got with a new Page Access Token (short lived(about 60 min)) to each one. This Page

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

二次信任 提交于 2019-11-26 21:41:24
问题 string accessToken = GetAccessToken(); string accessKey = accessToken.Split('=')[1]; var client = new FacebookClient(accessKey); dynamic me = client.Get("me"); here is the method to get access token and it does return a valid access token private static string GetAccessToken() { // Create a request using a URL that can receive a post. WebRequest request = WebRequest.Create("https://graph.facebook.com/oauth/access_token?grant_type=client_credentials&client_id=201193246663533&client_secret

Retrieve Access Token Using Javascript API

╄→尐↘猪︶ㄣ 提交于 2019-11-26 20:03:52
问题 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 than null, I thought I'd authenticate the user on the client side, then send the access token to the server side (ASP.NET MVC) along with the AJAX call. Unfortunately, I cannot get that to work either! Here's my Javascript code (which I've got from the documentation): function postOnFacebook(msg,

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

时光总嘲笑我的痴心妄想 提交于 2019-11-26 18:09:45
问题 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 isn't any source about .net how can i get the liked info in ASP.NET I find another examples in php in this link again but i can't find c# answer :\ Thanks 回答1: You get signed request when your web page is loaded within facebook canvas app; you should be able to parse signed request something similar

Facebook API, Phone Numbers

孤街浪徒 提交于 2019-11-26 16:42:49
问题 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 user_mobile_phone permission exists, neither the documentation includes a field of mobile phone number. I am creating a synchronization of contacts, so the phone field is very important. Why this is blocked? Spamming with mobile is not a very nice spamming approach, it has a cost. They even let e-mails