
|
|
|||
Create a Facebook Application With PHPBy Justin Laing2008-01-07
Hello Facebook! Let’s create a really simple first application that just says hello to the current Facebook user. Here’s the code for the Hello Facebook! application:
So what happens when a user hits the Canvas Page URL (from the example it would be: http://apps.facebook.com/makebeta/)? The require_login() call will produce a screen like this for the user:
If you change require_login() to require_add() the user will get a page that looks like this:
After the user logs into or adds the application they will get the canvas page with the “Hello…” text. It should look something like this:
Tutorial Pages: » Facebook Is The New Black » What Will I Learn? » Getting Started As A Facebook Developer » PHP Facebook API Client Library » Creating Your Application Profile And API Key » Hello Facebook! » Facebook Markup Language - FBML » Facebook API REST-based Interface » Resources and Further Reading Originally posted on Makebeta |
||||
| About the NetVisits, Inc Network | Write For Us | Advertise Copyright ©2007 NetVisits, Inc Network. All Rights Reserved. Privacy Policy. |
Visit other NetVisits, Inc. sites: |