BUILDING BLOCKS OF OUR PROJECT
4.1 Facebook API
At Facebook people and the connections they have to everything they care about. Facebook Platform is the set of APIs and tools which enable developers to integrate Facebook to drive registration, personalization, and traffic — whether through applications on Facebook.com or external websites and devices.
The Facebook Platform enables developers to make their website more personalized and social. You can mix and match Facebook's APIs to best meet your goals:
- Registration + Login — With a single dialog, you can access data including a user's real name, email address, profile picture and list of friends. Replace or supplement your user account system with Facebook to help drive signups and improve data quality.
- Engagement — With Facebook users comes their friends; incorporate these connections to make your product more engaging. Social plugins like the Like button and the activity feed enable you to offer social experiences with just a line of HTML.
- Growth — You can publish content from your site into Facebook to reach your users' friends. The Like button enables users to share your site's content back to their Facebook stream with one click
4.1.1The log-in API
Facebook enables you to remove the registration process for your site by enabling users to log in to your site with their Facebook account. Once a user logs in to your site with his or her Facebook account, you can access the user's account information from Facebook, and the user is logged in to your site as long as he or she is logged in to Facebook. The Facebook Platform uses the OAuth 2.0 protocol for authorization.
With the API initialized, you can pop up a Facebook authorization dialog by calling the FB.login JavaScript method, or you can include the standard Facebook login button with the tag:
which renders the standard Facebook login button:
Fig 4: Facebook login button
Some of the basic account registration data you might want to collect in your registration process is private, so it requires requesting extended permissions from the user in the login process.
To request the user's email address and birthday in the login process or updating status, use the perms argument to the fb:login-button tag to request the required permissions:
Fig 5: Request to access user information from Facebook
- Live-stream API
Use this API to render a Live Stream Box social widget on your FBML canvas pages or Facebook Connect sites. If you have an IFrame application, you can render the Live Stream Box in an
No comments:
Post a Comment