Facebook + PopFly + C# = Fun!

Facebook + PopFly + C# = Fun!

  • Comments 1

As originally posted on the Developers for Developers discussion group.  Be sure to check it out today!

 

Using PopFly on Facebook
One really cool thing I like about Popfly is the mashups you create can be added to your Facebook profile so that your friends can see and use them. These mashups could be anything from placing your photos on an image carousel to a mashup which places your friends on a map and finds the nearest Starbucks.

Here are some live examples on Facebook right now:

Popfly Scribbler:
http://www.facebook.com/add.php?api_key=ed7121d9c77956af1713848384306c9f

John Montgomery's Halo 3 Scoreboard:
"http://apps.facebook.com/popflymashups/Default.aspx?r=johnmont|Halo3 for Facebook"

Another cool thing you can do is download that Popfly mashup you see on Facebook directly into your own Popfly profile and then tweak it however you like! Brad Abrams showed this off during the keynote at Remix Boston. Download this video off Channel9 and skip to about 16 minutes in to check it out!
http://channel9.msdn.com/ShowPost.aspx?PostID=346649#346649

Some more links:

PopFly Facebook Mashups Overview:
http://apps.facebook.com/popflymashups/

Main PopFly Page (Now in Open Public Beta)
http://www.popfly.com

 

Facebook Development using VB.NET and C#

Looking for some .NET wrappers around the Facebook APIs?

Check out the Facebook Developer Toolkit project here on Codeplex:

http://www.codeplex.com/FacebookToolkit

Example:

using System;
using System.Text;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using Facebook; // remember to add a reference to C:\Program Files\Coding4Fun\Facebook\Binaries\Facebook.dll to your project

namespace f8test
{
class Program
{
private const string apikey = "YOUR API KEY";
private const string apisecret = "YOUR SECRET";

[STAThread]
static void Main(string[] args)
{
Facebook.Components.FacebookService _fbService = new Facebook.Components.FacebookService();
_fbService.ApplicationKey = apikey;
_fbService.Secret = apisecret;

Collection<User> friends = _fbService.GetFriends(); // this will automatically trigger _fbService.ConnectToFacebook()
foreach (User u in friends) {
Console.WriteLine(u.Name);
}
}
}
}


 
Leave a Comment
  • Please add 3 and 3 and type the answer here:
  • Post