background preloader

Facebook Developer

Facebook Twitter

The Open Graph protocol. Best Practices. The Facebook Crawler fetches content from your site and generates a preview for people on Facebook. When someone shares a URL on Facebook and Likes or Recommends a page on your site using a plugin, it activates the Facebook Crawler. If your content is publicly available, we should have no problem accessing it. If your content requires someone to login or if you restrict access after some amount of free content has been consumed, you will need to enable access for the Facebook Crawler. This access is only used to generate previews, and Facebook will not publicly expose your private content. There are two methods to give Facebook’s Crawler access to your content: IP whitelisting, which is more secure, but requires upkeep User agent whitelisting, which is less secure, but requires little to no upkeep) IP whitelisting Your engineers can allow the following IP addresses access to pages that would otherwise be inaccessible to the public. whois -h whois.radb.net -- '-i origin AS32934' | grep ^route.

Niallkennedy/open-graph-protocol-tools. Social Media Meta Tags: How to Use Open Graph and Cards. Using the Graph API. The Graph API is the primary way to get data in and out of Facebook's social graph. It's a low-level HTTP-based API that you can use to query data, post new stories, upload photos and a variety of other tasks that an app might need to do. This guide will teach you how to accomplish all these things in the Graph API. Reading All nodes and edges in the Graph API can be read simply with an HTTP GET request to the relevant endpoint. GET graph.facebook.com /{user-id}/photos Some API read calls must be signed with an access token. The /me node is a special endpoint that translates to the user_id of the person (or the page_id of the Facebook Page) whose access token is currently being used to make the API calls.

GET graph.facebook.com /me/photos The response you receive will vary based on the node or edge that you are reading, but it will take the following general form: Choosing Fields By default, not all the fields in a node or edge are returned when you make a query. GET graph.facebook.com? Best Practices. Home.