background preloader

Extended Permissions - Développeurs Facebook

Extended Permissions - Développeurs Facebook
As a general rule, the more permissions an app requests, the less likely it is that people will use Facebook to log into your app. In fact, our research shows that apps that ask for more than four permissions experience a significant drop off in the number of completed logins. Additionally publishing permissions (publish_actions) will prompt a second step in the Login dialog, which can cause fewer people to log in: Here are a few guidelines to use when asking for permissions, both during and after login: Only ask for the permissions that are essential to an app.Ask for permission in the context in which they are required. For example, if your app wants to show places of interest near a person's home, asking for user_location just prior to displaying that information would give the person a greater understanding of why the permission is being requested.Use any available public profile information before asking for a permission. Publishing Permissions

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 the dialogs and UI will be in US English. 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. <script> (function(d){ var js, id = 'facebook-jssdk'; if (d.getElementById(id)) {return;} js = d.createElement('script'); js.id = id; js.async = true; js.src = "//connect.facebook.net/es_LA/all.js"; d.getElementsByTagName('head')[0].appendChild(js); }(document)); </script> Disabling Login Status Check By setting status to true in the FB.init() call, the SDK will attempt to get info about the current user. Setting status to false can improve page load times, but you'll need to manually check for login status using FB.getLoginStatus.

Implementing Facebook OAuth 2.0 Authentication in Java | Pragmatic Coder : Java, Wicket and the Web Published Wed, 30 Jun 2010 • 100 comments I recently switched onmydoorstep.com.au's Facebook login feature from the old "Facebook Connect" API implemented with facebook-java-api over to the new Facebook Graph API / OAuth 2.0 authentication. This was far easier to implement than the original authentication, particular under Apache Wicket, but it should be easier regardless of your Java framework of choice. Here's how I did it. First I developed a basic "magic" class for the Facebook API - You'll need the visural-common library for some of the code above. I want the "email" and "publish_stream" extended permissions, so that I can get the user's email address and post updates back to their stream in Facebook. The process of authentication is simple. Due to the way Apache Wicket works, I implemented a Servlet Filter for the "redirect_uri" (/fbauth) - Your "UserService" might look something like - So, just to recap, the sequence of authentication is as follows - Anyhow, hope it helps someone out!

Apps on Facebook.com 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

PHP SDK & Graph API base Facebook Connect Tutorial In this article I’m focusing facebook latest php sdk to integrate facebook features in your site. Some days ago facebook released their new graph api system and updated their core structure. They also officially released php sdk so that you can easily call facebook latest graph api and old legacy api from server side by php. Before proceeding first have a look my previous article specially Facebook connect authentication part. In this post I’ll show How to check valid session of user, if user successfully logged inHow to call graph api How to call legacy apiHow to update status dynamically using graph apiHow to use FQL Query So take a look my demo of this tutorial. Follow this post based on PHP SDK 3.0 by Facebook and skip current post. First download the php sdk libary from here . Create a file named fbmain.php. First update $fbconfig array by your application’s id, api key and secret key. $session = $facebook->getSession(); This method returns session information of user. Please change 1.

Facebook Lets You Easily Integrate into Sites and Widgets with New Create Application API Facebook recently released its new Create Application API, a slim convenience API that makes it easy for developers to generate a Facebook API key for widgets. The API complements existing Facebook developer tools, including Facebook Connect, an increasingly popular way of allowing for delegated Facebook authentication on third party web sites. According to Vishu Gupta, the lead developer behind the new API, the API should streamline integration with Facebook: Every website that wants to integrate with Facebook needs an API key. Some preliminary documentation is currently available, and it includes details about two methods currently available for using the API (FBJS or a JavaScript client library). Despite its relative simplicity, it’s likely that developers working with Facebook apps will get quite a bit of utility out of this API. Both comments and pings are currently closed.

Facebook Really Wants You to Integrate it Into Your Site Facebook has launched the Create Application API, which is aimed at making it easier for users to integrate Facebook on their websites and widgets. "Many websites are looking for ways to integrate Facebook Connect, such as commenting using Facebook identity or showing visitors their Facebook friends’ recent activity," says Facebook software engineer Vishu Gupta. "Companies like DISQUS offer widgets to such websites, providing off-the-shelf Facebook integration with just a few clicks." "Every website that wants to integrate with Facebook needs an API key. There are two ways developers can call the Create Application API:

Cross-Domain Communication with IFrames An update in the era of HTML5 (May 6, 2011) This post has been heavily commented and linked to over the years, and continues to receive a ton of traffic, so I should make it clear that much of this is no longer relevant for modern browsers. On the one hand, they have adjusted and tightened up their security policies, making some of the techniques here no longer relevant. With modern browsers, you can and should be using postMessage for this purpose. Library support is now available too. Now back to the original post … (from March 31, 2008) This article explains iframe-to-iframe communication, when the iframes come from different domains. Background: Cross-Domain Communication Ironic that in this world of mashups and Ajax, it’s not very easy to do both of them together. Related to this article is a demo application and a couple of variants. The Demo First, let’s see what we can do with this hack. Demo The Laws of Physics: What you can do with IFrames Ta-da!!! A few observations: Applications

Related: