facebook-c#-sdk

Facebook 60 day access token and Deprecated Offline_Access

元气小坏坏 提交于 2019-11-26 14:17:32
问题 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

Deserializing JSON when sometimes array and sometimes object

假装没事ソ 提交于 2019-11-26 05:55:58
问题 I\'m having a bit of trouble deserializing data returned from Facebook using the JSON.NET libraries. The JSON returned from just a simple wall post looks like: { \"attachment\":{\"description\":\"\"}, \"permalink\":\"http://www.facebook.com/permalink.php?story_fbid=123456789\" } The JSON returned for a photo looks like: \"attachment\":{ \"media\":[ { \"href\":\"http://www.facebook.com/photo.php?fbid=12345\", \"alt\":\"\", \"type\":\"photo\", \"src\":\"http://photos-b.ak.fbcdn.net/hphotos-ak

An attempt was made to access a socket in a way forbidden by its access permissions

拟墨画扇 提交于 2019-11-26 05:38:25
问题 I just downloaded C# SDK and ASP.NET MVC sample, modified it to work with 4.2.1. (web config facebookSettings parameters etc.), created my Facebook application and tried to run it. Click to facebook login button - ok, entering credentials into facebook popup - ok, allowing access for my application - ok, and then I get this error: System.Net.Sockets.SocketException: An attempt was made to access a socket in a way forbidden by its access permissions 66.220.146.47:443 var app = new FacebookApp(