|
||||||||
the first part, I covered a very high-level guide to getting started with writing a Facebook app.
iFramesFacebook apps are included by Facebook inside its page using iFrames
Facebook Apps: Detailed explanationWhat happens when a Facebook user tries to use your Facebook App?
…but what does this look like to the user?
So, the first thing to understand, especially if you’ve used FB a lot yourself, is that there’s a lot more going on behind the scenes than appears to the user. This will become especially clear when you make a mistake and start trying to debug your app. Facebook Login (Authentication)There are two “modes” in which you can create a webpage to display as part of your app:
In the default mode, i.e. if you do nothing special, you have NO ACCESS to any of Facebook’s data. You cannot find out ANYTHING about the Facebook user - you can’t find their name, you can’t find their friends, you can’t post items on their Wall, nothing. Here is an example of a Web App done in J2EE that simply returns some HTML to say Hello that does not do authentication
In the authenticated mode, you have full access to whatever PERMISSIONS you ask for an can include:
Authenticating in java SEE FACEBOOK JAVA API FOR LATEST DETAILS AND EXAMPLESFB provides you with either JavaScript SDK or other SDKs to perform Facebook Login/Authentication process to then access the Facebook API from code. If you are doing a Java EE Web app you will need to use JavaScript. Note for some permissions you can use the FBML tags inside your HTML ---you will see some examples of this. READ CURRENT developer.facebook.com. But, here are some examples of starting Facebook login in pastFB.login(**) = function call from Facebook Javascript SDK <fb:login-button scope="public_profile,email" onlogin="checkLoginState();"> </fb:login-button>
|
||||||||
© Lynne Grewe |