*** SEE THE VIDEO ***
Before we begin to upload a photo you should know the photo_upload work flow.
All photos need to first know their destination. Whether it be a new ablum (photos.createAlbum) or an existing album (photos.getAlbum). Once a photo knows it’s destination, it can then be uploaded and be tagged (optional).
NOTE: Upload requests must [...]
Archive for the ‘API’ Category
Calling the photos.upload API
Posted in API on September 23, 2008 | Leave a Comment »
Calling the fql.query API
Posted in API on September 23, 2008 | Leave a Comment »
***** SEE THE VIDEO *****
——————————————————————————-
As I mentioned in an earlier post, this API call should be the work-horse for most of your interaction with FaceBook. This method allows you to use standard SQL with FaceBook. FaceBook gives you access to several tables and fields that can really make your job MUCH easier, not to mention [...]
Calling the users.hasAppPermission API
Posted in API on September 23, 2008 | Leave a Comment »
*** SEE THE VIDEO ***
Use this tag to check and see if a user has approved one of the following extended permissions:
-email
-offline_access
-status_update
-photo_upload
-create_listing
-create_event
-rsvp_event
-sms
It’s a good idea to use this tag because it can check before you try to run a permission that has not been approved. It serves as a fail-safe for something that will never [...]
Calling the photos.createAlbum API
Posted in API on September 23, 2008 | Leave a Comment »
This little API calls does just what it says. It will create a photo album for the user.
API Call:
#application.FBMLClient.CreateAlbum(form.albumName,session.fb_session_key)#
CFC Function:
<cffunction name=”CreateAlbum” access=”public” output=”false” returntype=”any” hint=”Returns all friends of user”>
<cfargument name=”name” type=”string” required=”true” hint=”the name of the album being created”>
<cfargument name=”session_key” type=”string” required=”true” hint=”the session id of the logged in user”>
<!— local vars —>
<cfset var params [...]
Calling the profile.setFBML API
Posted in API on September 23, 2008 | 1 Comment »
FaceBook’s profile.setFBML tag is a littly tricky if your api calls are out of order. This call is used in tandom with the ‘Add to Profile‘ FBML button. If you don’t call profile.setFBML first, your ‘Add to Profile’ button will not function properly nor use the built in conditions.
<!— set vars for profile & profile_main [...]
Calling the notifications.send API
Posted in API on September 23, 2008 | 1 Comment »
You start out by making a simple call to your function:
<cfset to_ids = ‘89278,197830,0982′/>
FBMLClient.sendNotification(session.fb_session_key,to_ids,’Hello! This is my notification.’)
Your function consists of a few lines and is relatively simple:
<cffunction name=”sendNotification” access=”public” output=”false” returntype=”any” hint=”user-to-user notification that sends to any friends of that user”>
<cfargument name=”session_key” type=”string” required=”true” hint=”the session id of the logged in user”>
<cfargument name=”to_ids” type=”string” [...]
FaceBook’s PHP REST Server
Posted in API on September 23, 2008 | Leave a Comment »
Where is FaceBook’s REST client located and how do I access it?
Facebook’s REST server is accessible through the restserver.php file. You can either access the old facebook server or the new. I’m not sure why you would want to access the old server but for kicks I will show you both URL’s you can get [...]