更新时间:2021-08-27 12:09:20
coverpage
Facebook Application Development with Graph API Cookbook
Credits
About the Authors
About the Reviewer
www.PacktPub.com
Support files eBooks discount offers and more
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Chapter 1. Creating a New Facebook Application
Introduction
Downloading PHP-SDK and setting upyour environment
Registering a new Facebook application
Configuring a Facebook application
Getting authorization and a valid session for the user
Requesting specific permissions from the user
Logging out a user
Handling navigation in an iFrame Facebook application
Handling form submission in an iFrame Facebook application
Dynamically resizing an iFrame Facebook application
Determining whether a Facebook page has been liked by a user
Chapter 2. Be a part of Social Graph
Retrieving a user's information
Liking a post
Commenting on a given post
Setting status message
Deleting a picture post or comment of a user
Retrieving the current user's friendlist
Creating a post on the wall of a user's friend
Posting a picture to a specific album of the user
Retrieving the names of the user's friends who have liked a particular status message
Creating an event
Paging through a user's friends
Searching through a user's feed
Tagging users in a picture
Adding a subscription for real time updates related to a user object
Creating a callback for handling real time updates
Deleting subscriptions
Chapter 3. Querying Facebook
Returning information about a user
Getting the status messages of a user
Retrieving profile pictures of a user's friends
Getting the links posted by a user
Getting the Facebook pages followed by a user
Determining if two users are friends
Retrieving information of a group
Retrieving members of a group
Retrieving friends from a specific friend list
Getting all the messages in a thread
Checking the status of permissions for an application
Getting notifications and their senders for the current user
Retrieving video details associated with a user
Getting the five latest photos in which a user has been tagged
Retrieving the latest photos published by a user
Retrieving details of an event
Retrieving details of a user's friends by using the multiquery method
Chapter 4. Using FB Script
Getting the current user status and performing session validation
Setting up extended permissions during login
Resetting the size of iframe
Making a Graph API call
Executing an FQL query
Subscribing to an event change
Unsubscribing to an event change
Retrieving a profile picture using XFBML
Adding bookmarks using XFBML
Authentication and setting up extended permissions using XFBML
Chapter 5. Expressing Yourself
Prompting the user to publish a story
Using Dialog to add someone as a friend
Using the OAuth Dialog to request permissions for your application
Prompting the user to send a request to friends
Processing requests sent to the user by friends
Chapter 6. Bringing Facebook to your Website
Setting up the Like button on your web page
Adding a Like box
Setting up the Activity Feed plugin
Setting up the Facepile plugin on your web page
Integrating the Live Stream plugin using XFBML
Integrating the Comment box using XFBML
Integrating the Send button using XFBML
Login with Faces
Chapter 7. Connecting Websites to the Social Graph
Integrating web pages into the social graph
Integrating audio and video data
Administering your page
Publishing stream updates to the users
Chapter 8. Fiddling with Virtual Currency