facebook-c#-sdk

FBConnect's handleOpenURL Method Not Called by my AppDelegate

只愿长相守 提交于 2019-12-03 17:25:18
I have implemented the FBConnect SDK into my app, and it works perfectly on the simulator. I then modified my app's .plist file appropriately, and added the necessary method to my AppDelegate for when Facebook is installed on the device: - (BOOL)application:(UIApplication *)application handleOpenURL:(NSURL *)url { NSLog(@"handleOpenURL Method was called and sent the following:"); NSString *urlString = [NSString stringWithContentsOfURL:(NSURL *)url]; NSLog(@"URL String: %@", urlString); return [[flipsideViewController facebook] handleOpenURL:url]; } From the above NSLogs and the observation

Facebook Application that Searches for nearest Place

会有一股神秘感。 提交于 2019-12-03 17:18:14
Is it possible to create a facebook application that would display a list of the nearest place of interest location? Much like the current existing Urbanspoon Application (http://www.urbanspoon.com/c/338/Perth-restaurants.html) but on facebook. Can somebody please point me to the right direction :) Get place ID for user's current location: SELECT current_location FROM user WHERE uid=me() Get coordinates for that place ID: https://graph.facebook.com/106412259396611 Get nearby places: https://graph.facebook.com/search?type=place&center=65.5833,22.15&distance=1000 You could of course get the

Finding out if a Facebook page is liked by a user. Using the Facebook C# SDK

旧巷老猫 提交于 2019-12-03 16:53:31
I'm trying to build a Facebook 'fangate' tab or 'reveal' tab for a Facebook page. You know how it goes - when a user visits the page, they are shown one bit of content if they haven't yet clicked 'Like' and another once they have. I'm not a PHP guy so I'm attempting to do this with the Facebook C# SDK ( http://facebooksdk.codeplex.com ) in Visual Studio 2010. I'm fairly new to .NET too so I'm not doing so well with this! I have to admit I've been cutting and pasting code from all over the place to get this to work and I think I'm almost there but I'm not getting this error: Invalid signed

How does paging work on the C# Facebook sdk

。_饼干妹妹 提交于 2019-12-03 15:39:58
Cannot find any documentation for this... Currently using the following code to get a list of my photos: FacebookApp fb = new FacebookApp(accessToken); dynamic test = fb.Get("me/photos"); I'm cycling through the first 25 photos that it returns. Simple. Now how do it get it to return the next 25? So far I've tried this: FacebookApp fb = new FacebookApp(accessToken); string query = "me/photos"; while (true) { dynamic test = fb.Get(query); foreach (dynamic each in test.data) { // do something here } query = test.paging.next; } but it fails throwing: Could not parse '2010-08-30T17%3A58%3A56%2B0000

Facebook C# SDK - .NET 3.5 & Dynamic objects

♀尐吖头ヾ 提交于 2019-12-03 14:55:23
问题 I have downloaded the Graph C# SDK for facebook, the examples are very helpful and easy to understand however i come unstuck when trying to use the dynamic object type as the return object for a FacebookApp.Get("me") call. I'v never used dynamics before so i did a bit of reasearch and it seems they are new to Visual Studio 2010, which is the version i am using but i cant use the latest framework because of my production environment... Is there a type i can use instead or is there a different

How does Facebook Graph API Pagination works and how to iterate facebook user feed with it?

北城以北 提交于 2019-12-03 13:04:02
I have a facebook Graph API call to get a facebook users feed: dynamic myFeed = await fb.GetTaskAsync( ("me/feed?fields=id,from {{id, name, picture{{url}} }},story,picture,link,name,description," + "message,type,created_time,likes,comments") .GraphAPICall(appsecret_proof)); The above returns a number of the latest user posts in a while say 21 or maybe 22 posts but not the complete list of user posts. I searched for a way to iterate through a users feed using facebook pagination and I ended up finding this solution which works with facebook Offset pagination. dynamic myFeed = await fb

JsonObject to Model Facebook SDK

▼魔方 西西 提交于 2019-12-03 13:00:03
问题 I'm have to use the facebook c# sdk for a new poject in .net 3.5 , I'm aware that the latest version has examples for 4 - but it's also compiled against the 3.5 so works completely. Anyway, and forgive me if I'm being incredibly dumb. But i'm looking to convert a json object into my model, can I do something like this? public ActionResult About() { var app = new FacebookApp(); JsonObject friends = (JsonObject)app.Get("me/friends"); ViewData["Albums"] = new Friends((string)friends.ToString());

How to get the Page Id in my Facebook Application page

穿精又带淫゛_ 提交于 2019-12-03 09:00:59
I have my application is hosted in FaceBook as a tab and I want to get the page ID when my application is being added to be stored in my logic. How can I get the page ID, I know it is stored in the URL but when I tried to get it from the page as a server variable, I am not getting it even my application is configured as iFrame ? But this is a standard way to get the parent URL. C#: string t= request.serverVariables("HTTP_REFERER"); //doesn't get FB page url even if your app is configured as iframe ?!! @csharpsdk #facebook devs Any help ? Thanks a lot. Here is how I do it: if

Login to website using Facebook account [closed]

泪湿孤枕 提交于 2019-12-03 09:00:53
I want to implement SSO in our current website so that we can login to that website using a Facebook account. Can you please provide the steps which I need to follow to implement it? Try with this link https://developers.facebook.com/docs/guides/web/ jerrymouse Mixu had meticulously explained single sign-on in his 3 paged blog: 1) http://blog.mixu.net/2010/12/27/implementing-facebook-login-single-sign-on-part-1/ 2) http://blog.mixu.net/2011/01/03/implementing-facebook-login-part-2/ 3) http://blog.mixu.net/2011/01/09/implementing-facebook-login-part-3/ UPDATE SSO is simply logging a user with

Facebook C# SDK - Server flow authentication

孤街醉人 提交于 2019-12-03 07:53:17
I am using the Facebook C# SDK installed using NuGet to allow user's to login to my site using Facebook. In all the C# SDK documentation that I've found, the access token was obtained using the JavaScript SDK. I want to do the entire authentication flow server side without using JavaScript SDK. Where can I find good documentation or sample code for the steps I need to follow for complete server side authentication using the Facebook C# SDK? Is there any advantage of combining C# SDK and JavaScript SDK, or is it fine to stick to server side flow only? Server side authentication is same as