Jump to content
xisto Community
Pii

Facebook Api Programming

Recommended Posts

Has anyone here written a Facebook application? As Facebook seems to be a great place to advertise your game using social network model.If so how successful have you been? Is their ad system rewarding? Would it be better to just develop seperately and use Google's Adsense?

Share this post


Link to post
Share on other sites

I once did a very basic facebook app, but then I was bored. Here, I'll walk you through Facebook Developing.

1: Get a Facebook Account (of course)

2: Install the developer application

3: Click the 'Create an Application' button

4: Go through the pages and fill out the details

5: Install the PHP Facebook Library from the Developer app homepage

6: Get your Application Secret and API Key

7: Create the Hello World Application:

<?php

require_once('/facebook-platform/php/facebook.php'); //Where your Facebook Library is located

 

$facebook = new Facebook('api key','secret key'); // start

 

$fb_user = $facebook->require_login(); //get username, else redirect to login

?>

Hello <fb:name uid='<?php echo $fb_user; ?>' useyou='false' possesive='true' />! Welcome to my first application!

<?php

echo "<pre>Debug:" . print_r(facebook,true) . "</pre>"; // Just for debugging

?>

That code is not mine, don't give me credits.

8:Expand on to what you already know, create your dream application

That is all I know. I don't care in learning the API, so don't expect anything more than what I just said to you about the Facebook PHP API. The Facebook API can be in any type of file, even Flash. But you know, Flash probally requires you to use Flex with it to intergrate the Facebook API with Flash. I hope that you learned something from this post, so goodbye! :)

Hannah

Share this post


Link to post
Share on other sites

I also created one a couple of years back however facebook are constantly changing their api and if you want to keep up with the changes then you need to constantly change around your coding and it's a none stop battle to keep your application up to date with facebook. You can write basic apps fine and it may take a year to become deprecated but when i say basic i mean simply display someones name and how old they are. I wrote a basic mafia-based game facebook app and really couldn't be bothered carrying it on because I tried to make it a good game and they kept changing the api around. It makes it impossible to make a decent app. Found out later fans of my old game started up their own and copied my idea and carried it on, called mafia wars or something like that now, bl**dy ripoffs.

Share this post


Link to post
Share on other sites

It is and it isn't. Like I said the API prevents any advanced programming, while a good security precaution in "some" cases it really does prevent you from making anything worth while. Also, the advertising people input in to facebook actually pay money to facebook for their service as well as the person who has made the app. It's how facebook works. You spend all the time making rubbish that nobody would actually use outside of facebook and make pittence from advertising while facebook collectively gathers revenues from everyone's hard work and ignorant peoples time. It is truly a brilliant marketing strategy but since I'm not on the receiving end I condemn it lol :)

Share this post


Link to post
Share on other sites

I thikn its worthwhile making apps for a 'closed community' of 60 mmillions members. Its definitely worthwhile atleast for the fame the developer gets if the app becomes success.

Share this post


Link to post
Share on other sites

I have tried making Facebook applications before but I was not too successful. I also tried Facebook Connect, which was a bit more successful in terms of getting it to work, but it was still a lot of work.Nonetheless, if you do manage to develop an application, it can be a powerful tool for advertising and promoting your service/game/etc.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.