473,320 Members | 1,814 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Facebook API

George Lft
been trying to build an application in facebook, but couldn't understand anything about it. Went through their tutorial like 10 times, but can't understand.

Where should i start to build it?? Like do i need a new domain? , a server, - if so, what type ?? How do i integrate it into facebook ???


Thanks.
Jan 26 '08 #1
7 3971
been trying to build an application in facebook, but couldn't understand anything about it. Went through their tutorial like 10 times, but can't understand.

Where should i start to build it?? Like do i need a new domain? , a server, - if so, what type ?? How do i integrate it into facebook ???


Thanks.
Are you currently using a server for you application? You can't run PHP without having a server.
While I'm waiting for your answer I'll check out the API, I might be able to help. But don't ever quote me.
Jan 27 '08 #2
Markus
6,050 Expert 4TB
Are you currently using a server for you application? You can't run PHP without having a server.
While I'm waiting for your answer I'll check out the API, I might be able to help. But don't ever quote me.
Oopsie daisy!

^_^
Jan 27 '08 #3
yes, I have a server. I'm using WAMP.

When i build my website: I use my remote server phpmyamin ,

My WAMP - local phpmyadmin is only used as my local testing server.,

So i wonder do i do the same in API as well ?.



Thanks again
Jan 28 '08 #4
yes, I have a server. I'm using WAMP.

When i build my website: I use my remote server phpmyamin ,

My WAMP - local phpmyadmin is only used as my local testing server.,

So i wonder do i do the same in API as well ?.



Thanks again
If the server your using is your home computer, I would recommend you uninstall WAMPserver and read this tutorial, to install an actually working server.
For the Facebook API, I'm sorry but I don't have a facebook account so I cannot help you much there. However I looked at several tutorials and this tutorial seems to be easy to read and understand.
Sorry, not really a MySpace/Facebook person. However I'll keep the API in mind in case I ever get a client who wants a facebook app.
Jan 29 '08 #5
Thanks, but i already have a working server . that's not my issue , if you read it correctly.


the installation is exactly how i did. so ...


the second link was ok, thanks for searching it ! haven't really read thru yet. Will let u know if it works.


Good luck!
Feb 2 '08 #6
pedalpete
110 100+
Hey George,

I've been building a facebook application with php and locally I use EasyPHP, so you're fine using WAMP for dev environment.

First thing I would do is go to your facebook developer account and set your redirect to the localhost and the directory where you are writing your application.

Download the footprints.php demo application and the php library and put it into your application directory.

I then got rid of all the $_GLOBAL stuff as I was getting nothing but errors, and read that it wasn't safe to use Globals.

Here's a link to stuff about turning off the globals
http://forum.developers.facebook.com/viewtopic.php?pid=45803

then try running your footprints.php - you may still get some errors, and need to tweak it, but it should give you an idea of how to communicate with facebook.

I've found myself using the FQL more than the API calls as I think it is easier.

Hope this helps,
Pete
Feb 3 '08 #7
First, uou must have at least a www server.

1st - AT FACEBOOK
visit www.facebook.com Click on the "Developer"'s link at the bottom of the page. Then, click on "Get Started". Then, click on "Add Facebook Developer Application" to add the the application which named "Developer". After you added this application to your profile, try to create a new application by clicking on "Setup New Application" at the top right of the page. It will give you an "api key" and the "password".

2nd - AT YOUR SERVER
Create a new file "whatever.php" under a directory with:
whatever.php -----------------------------------------------------------------------------
<?php
// key
$api_key = 'the api key you got after you created the app';
$password = 'the password you got after you created the app';
?>
end of whatever.php --------------------------------------------------------------------
then create your main index file "index.php" under the same directory with:
index.php ----------------------------------------------------------------------------------
<?
// the facebook client library
include_once 'client/facebook.php';
// some basic library functions
include_once 'lib.php';
// this defines some of your basic setup
include_once 'whatever.php';
$facebook = new Facebook($api_key, $password);
$facebook->require_frame();
$id = $facebook->require_login();
echo "Hello~!!! Your facebook id is ".$id;
?>
end of index.php -------------------------------------------------------------------------
after you created these files, you know that you need the facebook client library files "client/facebook.php" and "lib.php" which are required by index.php. So~ upload those files. (you can find these required files at http://developers.facebook.com/clien...latform.tar.gz)

3rd - AT FACEBOOK
go to "Developer" app. Then, you will see your application's info. at the top right.
Click on your application, then click "Edit Setting" then set the callback url to your www directory where you saved the files ("index.php", "whatever.php" and the library files).
For example: http://www.example.com/MyGame/FBversion/

After all this, you can start to test your application out by visiting:
http://www.example.com/MyGame/FBversion/
Apr 13 '08 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: mfasoccer | last post by:
Hey guys I'm writing a facebook bot program. Currently I am stuck at the login screen. My approach was to take a password and convert it to md5 along with the challenge parameter that you will...
0
by: rokone | last post by:
I uploaded a code example/tutorial of a facebook bot I have been working on off and on for the last couple days. I really do not plan on taking it much further which is why I posted it online with...
11
by: Dual_b00t | last post by:
Hi I am a beginner PHP programmer so I decided i would create a facebook group for us newbs to share and help each other out.. http://www.facebook.com/group.php?gid=20845788472 its brand new...
0
by: Dutt | last post by:
You know how Facebook is getting popularity nowadays. If you are really interested about facebook and you are .NET professional, I know the options provided by facebook web application are not...
1
by: reblace | last post by:
I'm trying to translate the following: <?xml version="1.0" encoding="UTF-8"?> <users_getInfo_response xmlns="http://api.facebook.com/1.0/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"...
3
by: serdar | last post by:
I have no Facebook API experience, but I plan to add "Facebook Connect" in one of my sites. I do not want to use Javascript based login that Connect has by default. Is Javascript required for...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.