background preloader

Facebook

Facebook Twitter

For Websites. As mentioned, the code above uses the common defaults for the options available when initializing the SDK. You can customize some of these options, if useful. Changing SDK Language In the basic setup snippet, the en_US version of the SDK is initialized, which means that all of the Facebook-generated buttons and plugins used on your site will be in US English. (However, pop-up dialogs generated by Facebook like the Login Dialog will be in the language the person has chosen on Facebook, even if they differ from what you've selected.) You can change this language by changing the js.src value in the snippet. Take a look at Localization to see the different locales that can be used. For example, if your site is in Spanish, using the following code to load the SDK will cause all Social Plugins to be rendered in Spanish. Login Status Check If you set status to true in the FB.init() call, the SDK will attempt to get info about the current user immediately after init.

Disabling XFBML Parsing. Authentication. Dialog Overview. Requests Dialog. Requests are available for games on Canvas, iOS or Android. Requests appear on whatever combination of these platforms are supported by your game. For example, a player using the iOS version of your game could send a request to a player who plays on Canvas, and vice-versa. Hence, your implementation of requests should be platform-agnostic and should provide a consistent user experience, regardless of platform. On all platforms, requests are sent via the Requests Dialog, which is provided by the Facebook SDK for that platform. As described in the User Experience section, the dialog can be used to send a request directly to a specified recipient, or to display a multi-friend selector, allowing the sender to select multiple recipients for the request. Invoking the dialog The request dialog is generated via the JavaScript, iOS or Android SDKs, Unity SDK, and by performing a browser redirect to a given URL.

JavaScript SDK Sending requests to a specific recipient: iOS SDK Android SDK Unity SDK <? Feed Dialog. Facebook Posting API. Stream Attachments. Introducing iframe Tabs for Pages. Apps on Facebook. To drive more traffic to apps on Facebook, we enable various channels that enable new users to discover your app as well as existing users to re-engage with your app. Each channel is designed to help engage users and our algorithms help surface the best content for each user. The current channels include: Newsfeed stories The News Feed is shown immediately to users upon logging into Facebook, making it core to the Facebook experience. Discovery stories Facebook shares stories with friends when a user starts using a new app or first installs a new game. In addition, Facebook also generates aggregated ‘playing’ stories by default. Developers of app associated with more personal behavior such as dating, weight management or pregnancy, can turn these stories off by disabling the social discovery field in the App Dashboard in the ‘Advanced’ tab under the ‘Settings’ section.

Publishing stories In addition you can publish content to the stream using the Feed Dialog. User control Timeline Search Page. Add an iFrame Application to your Facebook Fan Page. If you’re NOT on the HyperArts Blog, CLICK HERE! This post was updated on 3/19/11 to reflect change to Tab URL and Secure Tab URL settings. New Tutorial: Add the Reveal Fan-gating Feature to your iFrame Page Tab Facebook recently announced that on March 11, 2011, the Static FBML application will no longer be available to be added to Pages and that no new FBML applications can be created after that date. While Facebook indicates that current Static FBML and FBML tab applications will continue to function for now, it strongly encourages everyone to move from FBML to using iFrame applications. Over the coming weeks, we will be posting a series of tutorials to help you get started with using iFrame applications on your Fan Page. iFrames are now supported on Page tabs Prior to February 10, 2011, Facebook had disallowed iFrames on Page tabs and, although allowed on Canvas pages, iFrames required a user to click activation text or an image to load the iFramed content.

What is an iFrame application? Customizing your Facebook iFrame Application – Reveal Tab Fan-gating & More! If you’re NOT on the HyperArts Blog, CLICK HERE! IMPORTANT: You have to upgrade your Fan Page to the new layout before the application below will work on your Fan Page. Many Pages will see a big banner at the top of their Page announcing the upgrade. If you don’t, you can click here to upgrade your Fan Page. In our previous tutorial on Facebook iFrame tab applications, we looked at how to set custom iFrame tabs on your Facebook Fan Page. In this tutorial, we will look at how you can use the information that Facebook passes to your iFrame application when it is loaded to customize the experience of the person viewing the tab.

This includes presenting different content for fans vs. non-fans, aka the Reveal tab or Fan-gating. NOTE: A basic understanding of PHP is required This tutorial will require that you have at least a basic understanding of PHP. There are lots of great resources about PHP on the Internet that can help get you up to speed.

Installing the Facebook PHP SDK <? Troubleshooting. SDKs & Tools. Social Plugins. 3 Tools to Create New Facebook iFrame Pages. March 10 was a big day for Facebook Page owners. On that day, Facebook upgraded Pages to a new layout and removed FBML — Facebook Markup Language — as the custom-tab-creation code, replacing it with iframes. The latter action spelled trouble for do-it-yourselfers because it required them to learn how to create Facebook apps, which are required for iframes.

The switch to iframes created another problem. Many page owners used a function called “fangating,” which required visitors to “Like” the page before they could take advantage of certain features. For example, the page owner could offer free downloadable ebooks or discount coupons only when the visitor Liked the page. Through the use of a few FBML tags, creating fangated content was a relatively easy procedure. In response, two popular Facebook app development companies, Wildfire and Involver, have each created a free, easy-to-use interface, which makes iframe app creation simpler. Wildfire Wildfire offers free iframe creation tool. Facebook-actionscript-api - Adobe ActionScript 3 SDK for Facebook Platform. The new Adobe ActionScript 3 SDK for Facebook Platform API, fully supported by Facebook and Adobe, makes it easy to build applications that combine the strengths of the Flash Platform.

Developed by gskinner.com, this class library facilitates the development of Flash Platform applications that communicate with Facebook using the OpenGraph API. The Adobe Flash Platform and Facebook Platform provide the ideal solution for building rich, social experiences on the web. Flash is available on more than 98% of Internet-connected PCs, so people can immediately access the applications, content, and video that enable social interactions. The Facebook Platform is used by millions of people everyday to connect and share with the people in their lives. Together, both platforms allow you to: Share: Create rich interactions for users to share with friends. Getting Started For tutorials, articles, and videos on using the new API, visit the Facebook page on the Adobe Developer Center. Project History. Customizing the Text and Images that are “Shared” on Facebook. Did you know you can customize the text and image that Facebook uses when a visitor to your website uses “Share on Facebook”?

Facebook Bookmarks or “Share on Facebook” We have all seen the ubiquitous “Share” buttons on blogs and Corporate websites, such as the below. They all tend to work the same, when you click Facebook a new browser window opens up and you will see the usual Facebook “Post to Profile” page (such as the one at the top of this article).

What you may or may not know is that the text and image selected by Facebook, and circled in the screenshot above, is completely customizable. You have control over what Facebook displays. How to Setup a “Share on Facebook” Link or Bookmark The actual hyperlink for sharing a webpage on Facebook, or put differently, when you post a webpage on your Facebook profile, is really simple. How to Customize the Text that Facebook uses In the example above, the title that Facebook chose was “JW Player 5.1 Just Released! An example of the html title is: JavaScript Test Console.