Skip to main content

Posts

Showing posts with the label application

Coldfusion Facebook Graph API publish to your wall and your friends walls

In this tutorial we will learn by full coldfusion Graph API code example how to publish on your wall and your friends walls. This application uses new oauth authentication method. The code is divided into four files: we will first start with a file called index.cfm: <cfoutput>         <!--- Your FB application IDS --->       <cfset api_key = ""/>     <cfset secret_key = ""/>     <cfset appID = ""/>     <!--- create a connection to the fb graph cfc --->     <cfset graphCFC = createObject("component", "graph").init(#appID#, #api_key#, #secret_key#) />     <!--- If user is authenticated or his access token is set create a cookie --->        <cfif not isdefined("cookie.access_token") and isdefined("url.access_token")>         <cfset cookie.acce...

Publish on Facebook Wall Using JSON (FB application using Coldfusion)

To develop a success Facebook application and make your application popular you need to enable a story publishing on the wall of the members who uses your application. To do so in coldfusion what you have to do is to follow the tutorials by Gavin Vincent ( Using json and the Feed Preview Console ) In the tutorial by Gavin, to publish the story on your wall you have the member must publish the story by pressing on the publish story button, but how can you enforce members to publish the story to make your application more popular? It is so simple to do so, but how? First of all make your application, the form and the action, in the action page don't publish your application result, ask the user to press on a continue button, this button is the feedstory form, then when the user gets the JSON publish story popup window and press on publish he will be able to see the result, see the following code: <cfset json = '{"content": {"feed": {"template_id":...

Face Book Plugin Development 404 and 405 errors

When I was developing my first test Face Book plugin I had the following errors that annoyed me for a few hours until I figured out my mistake. 404 Error: Error while loading page from [App name] Received HTTP error code 404 while loading http://www.mywebserver.com/facebookapp There are still a few kinks Facebook and the makers of test are trying to iron out. We appreciate your patience as we try to fix these issues. Your problem has been logged - if it persists, please come back in a few days. Thanks 405 Error: Error while loading page from [App name] Received HTTP error code 405 while loading http://www.mywebserver.com/facebookapp There are still a few kinks Facebook and the makers of test are trying to iron out. We appreciate your patience as we try to fix these issues. Your problem has been logged - if it persists, please come back in a few days. Thanks Solution I figured out that the solution for this error is simple as I used to fill in the Canvas Callback URL in facebook applic...