is the blog of NetPlus Interactive: a top 50 Interactive Agency based in Philadelphia. ©2010
Subscribe:

Archive for the ‘social media’ Category

Using Facebook for Logins to Your Website

Jim DelPizzo Tuesday, August 31st, 2010

Last year we helped the Deb shops run the Deb Model Search. One of the features we used was a simple login script. A user had to register with the site and give some information like name, email, username and a password in order to submit a profile or to vote. A registered user could only vote for a model once per day.

What ended up happening was some people used web applications to create fake email accounts as a way to get around the rules and vote for a model more than once a day. We ended up catching on to this when searching which email addresses were voting for the profiles.

One way to solve this is to use Facebook’s Single Sign-on (SSO). Using SSO as the registration process for your site enables users to log on with their Facebook account. Once a user logs in to your site with his or her Facebook account, you can access the user’s account information from Facebook, and the user is logged in to your site as long as he or she is logged in to Facebook.

This also enables social sharing with their friends on their walls when they submit or vote – integrating your site with Facebook.

To do this you need to be part of the Facebook developers group and create a new application to get an application ID. Here is some example code to set up a quick page to test:

<?php

define('FACEBOOK_APP_ID', '116515581710958');
define('FACEBOOK_SECRET', 'a35d0afaddf41e092de8261f49d1f8c9');

function get_facebook_cookie($app_id, $application_secret) {
$args = array();
parse_str(trim($_COOKIE['fbs_' . $app_id], '\\"'), $args);
ksort($args);
$payload = '';
foreach ($args as $key => $value) {
if ($key != 'sig') {
$payload .= $key . '=' . $value;
}
}
if (md5($payload . $application_secret) != $args['sig']) {
return null;
}
return $args;
}

$cookie = get_facebook_cookie(FACEBOOK_APP_ID, FACEBOOK_SECRET);

?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:fb="http://www.facebook.com/2008/fbml">
<body>
<?php if ($cookie) { ?>
Your user ID is <?= $cookie['uid'] ?>
<?php } else { ?>
<fb:login-button></fb:login-button>
<?php } ?>

<div id="fb-root"></div>
<script src="http://connect.facebook.net/en_US/all.js"></script>
<script>
FB.init({appId: '<?= FACEBOOK_APP_ID ?>', status: true,
cookie: true, xfbml: true});
FB.Event.subscribe('auth.login', function(response) {
window.location.reload();
});
</script>
</body>
</html>

Example of Facebook Login

When a user clicks on the login button a popup will appear with the facebook login box.

After the user logins in they will be presented with an access box which will allow your web site to connect to that users profile.

After the access window you now have access to the facebook user id stored as a cookie. You can use this ID in your code for registered users on your site. We used this feature in the RO*TEL Across America Recipe contest which uses the Facebook Login, Facebook Like, and Google Maps.

You Don’t Get To 500 Million Friends Without Making A Few Enemies

Roman Zubarev Monday, August 23rd, 2010

I couldn’t help but use the tagline for the upcoming movie, “The Social Network” as the title for this post. It’s attention grabbing.

In theaters October 1st, 2010, The Social Network will tell the story of how Mark Zuckerberg launched a revolution in communication and became the youngest billionaire in history. Success didn’t come without hurdles and the film will also reveal both personal and legal complications that challenged Mark and tested his mettle.

I’m looking forward to giving it a watch this fall and getting to know the Facebook empire better. Digital communities and user behavior is fascinating to study, especially when going from 1 to 500 million members in 6 short years. Countless blog posts and articles have been written about Facebook, but this will be the first feature length film. Should be a fun ride.

Watch the trailer here:

Diaspora, the anti-Facebook?

Martin Witiak Tuesday, June 1st, 2010

Diasproa, an idea from four New York University students disagree that online social sites, mainly Facebook, shouldn’t be allowed to have access and or own all the personal data that flows through their social networks. What Diaspora is aiming to do is to have no middle men like facebook, twitter, Google have access to your private data except you and your friends.

Diaspora aims to be a distributed network, where totally separate computers connect to each other directly. This sounds like peer to peer file sharing network. They even call each computer a “seed” as they do in the bit torrent world. Data sharing with only people you want to share with is the goal of Diasproa.

Set up might be the major drawback as many non- technical users might find it a little too difficult to comprehend as with bit torrents. But if they can figure that out , they just might have something. Until then keep up on your privacy settings on Facebook.

You can learn more about Diaspora @ http://joindiaspora.com/

Web Development News, Tips, and Tricks

Jim DelPizzo Tuesday, May 11th, 2010

Where in the World Are You?

Have you heard of Foursquare, Gowalla, Loopt, Britekite, Google latitude, twitter location, Facebook location (which is due out soon); the new buzz of the web is who will be the leader on keeping tabs on your location. I have joined foursquare and google latitude and started checking in for a few locations around the office and my house, which begs the question how “social” do i want social networking?

For example Foursquare wants you to unlock your world, using your cell phone or text message (US only) by checking in to locations. Using your cell phone’s GPS functionality to tell you what is close to you, suggestions from other Foursquare users, and the ability to add locations. Once you check in you can let your friends know and also share this information on twitter and Facebook. If you have checked into a location the most you become the Mayor of that location. There are also discounts on some Foursquare locations where you could get drink specials if you check in to a location. Check out the video on Foursquare here.

Facebook will be launching their Geolocation based software soon which will integrate with the most popular site on the web. So what will happen when Geolocation hits the mainstream? How will brands use this information? Could be the rise of geotargeted pay per click or location based services; what a great way to target your customers.

This is going to be great for marketers but what about privacy? Do I really want the world and markets to know where i am all the time. If i am at the mall I don’t want text messages from say the Gap saying i could get a discount if i could stop in the store. Imagine all the junk text, emails, tweets, fB messages you would get by just walking around in the King of Prussia Mall. It would be nuts.

There will be a thin line on how people will want their information used. So there are a lot of i’s to dot and t’s to be crossed before everyone is loving geolocation. I think it will be here to stay…What are your thoughts? Concerns? Excited?

Check out Foursquare, Google Latitude, Gowalla, Loopt, and Britekite below













Web Development News, Tips, and Tricks

Jim DelPizzo Thursday, April 29th, 2010

Facebook had their third f8 conference on April 21st in San Fransisco while being streamed on Facebook. These conferences are like a state of the union, Facebook telling the world what they have been working on, the changes that will be happening to Facebook, and announcing some new features for both users and developers.

Contrary to some posts I have read Facebook is not ending the Facebook Connect. They are changing the brand name and expanding it. They are moving towards using the Graph API which will make it a lot easier for developers to build sites that use the Facebook Platform.

The Open Graph Protocol is a way for users to build their profiles through “LIKES” throughout the net. When a user clicks on a “LIKE” button say on http://www.nhl.com/ice/teams.htm for their favorite hockey team (i.e. the Flyers) on their Facebook page it will let everyone know that they like the Flyers with a link to that site. With 75 site launching this technology the “LIKES” will grow quickly. Here is a link to those site already using Facebook’s new Protocol http://developers.facebook.com/showcase/

Another thing that came out of f8 were new social plug-ins which can be added to any site without much programming knowledge.

So what is Facebook’s master plan with all this information? There are a couple rumors out there that Facebook will start community pages. These pages will be all user generated from different “LIKES” for different genres, for example if you went into the Hockey community you could see what people were saying or sharing about hockey. It would be a neat way to see information from the masses.

If you don’t have the Facebook javascript included into your site you can stilll include Facebook social icons using frames. Here is an example of the code.

Which will show:

If you do have the SDK all the code you would need is

As with anything Facebook does, there will a short time of backlash from its users who have to change the way they think a little – and let’s face it people don’t like to think – but in the long run Facebook can revolutionize the web once again.

Related Posts with Thumbnails


 
Contact
NetPlus Marketing, Inc
625 Ridge Pike
Building E, Suite 200
Conshohocken, PA 19428
t: 610-897-2380
f: 610-897-2381

:: More information
:: Website

Work
:: View our reel

Login
login