O'Reilly logo

Facebook Application Development with Graph API Cookbook by Apeksha Singh, Shashwat Srivastava

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Authentication and setting up extended permissions using XFBML

If we use Facebook JavaScript SDK in your application, then we can harness the easy-to-use authentication functionality provided by XFBML. It is an intuitive way to get users logged in to your application and requires a limited use of coding. This XFBML authentication button can be used both on iframe-based applications which run inside Facebook as well as independent applications which run on third-party websites.

Getting ready

You should have set up index.php, as explained in the beginning of this chapter. Also, you should have the list of extended permissions ready which you want to request from the user.

How to do it...

The following steps will demonstrate autentication:

  1. Open index.php ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required