game.onenall.com,play free game online game.onenall.com,play free game online game.onenall.com,play free game online game.onenall.com,play free game online game.onenall.com,play free game online game.onenall.com,play free game online game.onenall.com,play free game online game.onenall.com,play free game online

how to put facebook logout button

facebook connect logout button graphic

Using facebook connect api we must provide user to logout from facebook and from your site.

Here is the solution for the prob of logout from the facebook api from your site

until the developers make it available… you can use this:

check the user if login? show “logout button” else show “login button”..

//logout
<a href=”#” onclick=”FB.Connect.logout(function() { reload(); }); return false;” ><img id=”fb_logout_image” src=”http://static.ak.fbcdn.net/images/fbconnect/logout-buttons/logout_small.gif” alt=”Connect”/></a>

//login
<a href=”#” onclick=”FB.Connect.requireSession(function() { reload(); }); return false;” ><img id=”fb_login_image” src=”http://static.ak.fbcdn.net/images/fbconnect/login-buttons/connect_light_medium_short.gif” alt=”Connect”/></a>

Thanks

mrphpguru

Facebook Connect API for your website

Facebook Connect API for your website

Facebook connect API allows users to dynamically connect their identity information from Facebook, such as basic profile, friends, photos information and more, to third party websites, as well as desktop and mobile applications. The article here describes how to provide Facebook Connect authentication for your web application.

Steps to connect your site to Facebook :Facebook Connect API for your website

1. If you don’t already have a Facebook API key for your site, create an application with the Facebook Developer application.
Go to http://www.facebook.com/developers/createapp.php to create a new application.
Enter a name for your application in the Application Name field.
Accept the Developer Terms of Service, then click Save Changes.

If you have a Facebook API key,follow from next step
On the Basic tab, keep all of the defaults.

Take note of the API Key, you’ll need this shortly.
2) Click the Connect tab. Set Connect URL to the top-level directory of the site which will be implementing Facebook Connect.

You can include a logo that appears on the Facebook Connect dialog. Next to Facebook Connect Logo, click Change your Facebook Connect logo and browse to an image file. The logo can be up to 99 pixels wide by 22 pixels tall, and must be in JPG, GIF, or PNG format.
If your site is going to implement Facebook Connect across a number of subdomains of your site , you need to enter a Base Domain

Click Save Changes.

3. Create a cross-domain communication channel file called xd_receiver.htm and place it in a directory relative to the Connect URL that you entered in the previous step. Include following script into this file.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<body>
<script src="http://static.ak.connect.facebook.com/js/api_lib/v0.4/XdCommReceiver.js" type="text/javascript">
</script>
</body>
</html>

4. Next, in your Home Page ,ie page of facebook connect page,Place Html tag as following

<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2008/fbml">

5. include following javascript file with in your body tag NOTE IN HEAD TAG

<script src="http://static.ak.connect.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php" type="text/javascript"></script>

6. Place facebook login Button in your page

<fb:login-button></fb:login-button>

7. Finally, Include following script after the login button

<script type="text/javascript"> FB.init("YOUR_API_KEY_HERE", "<path from web root>/xd_receiver.htm"); </script>

See the above line need your attention pleasse provide following information
You should now be able to click on the facebook connect logo and use your facebook credentials to login to your web site.

thanks

mrphpguru

EBAY SELLER NEEDED GOOD COMMISSION by unnion





I am looking for 5-6 people who have eBay seller account preferably with feedbacks ! You will be posting around 15 auctions or more per week and you need to post it on eBay US (eBay.com). I will e-mail… (Budget: $750-1500, Jobs: .NET, Copywriting, Craigslist, eBay, Sales)

2 Marketing Reports needed by ssid123





Hello Bidders, I need two marketing reports that answer the following subjects for SMALL BUSINESSES: 1. How to build your brand in a recession 2. How to use Online Marketing and PR in a recession… (Budget: $30-250, Jobs: Academic Writing, Powerpoint, Publishing, Report Writing, Research)

Registry Cleaner Software by niravsej





Need registry cleaner software, please let me know if you already have developed one and have source code. Will require rebranding and some modifications to user interface. Thanks. (Budget: $250-750, Jobs: .NET, C#, C/C++, Java, Windows)

Vacation Rentals Website (YazlikMekan.com) by cenkemre



The project is similar to HomeAway.com or VacationRentals.com and is targeting the Turkish market. This website will be built in English and Turkish. I value quality work and require that the bidders have references that I can talk to… (Budget: min $3000, Jobs: AJAX, ASP, PHP, Website Design)



Download some files from a weird site and send them back by Juanle455

I need a quick freelance job done. I m preparing a project about business and mindset and I need some extra content, so I asked a guy from a forum to send me some links of e-books about those topics,… (Budget: $30-250, Jobs: Data Entry, Data Processing, eBooks, Technical Support, Virtual Assistant)

eBay Product Sellers Needed for LONGTERM JOB by hg9873





I am looking for 5-10 people who have eBay seller account preferably with feedbacks and know how to create one if needed to. You will be posting around 15 auctions or more per week and you need to post it on eBay US (eBay.com)… (Budget: $250-750, Jobs: Data Entry, Data Processing, eBay, Sales, Website Design)

Create a keyboard-shortcut macro by Chamuel

Create a keyboard-shortcut macro PROJECT: Create a simple keyboard-shortcut macro which will (a) load a new web browser, and then (b) go to the URLs shown below, (b) OR type the text shown, (c) OR execute function shown… (Budget: $30-250, Jobs: Script Installation, Visual Basic)

New paradigm e-commerce website – implementation by hervem

READ CAREFULLY BEFORE BIDDING. GO TO THE LINKS PROVIDED TO BETTER UNDERSTAND **************************************************************************** So, The new paradigm is about sharing one’s… (Budget: $750-1500, Jobs: AJAX, CSS, Google App Engine, PSD to HTML, SocialEngine)

Nonpublic project #624808 by Quartermaster

The project is Nonpublic. Description can be read only by registered users. (Budget: $30-250)

long copy sales site by tylerm909

I am looking for somebody to design a long copy sales letter. would like to post video testimonials. I am looking for something similar to this. http://www.salehoo.com/secrets/. I am also looking for an email template that will drive people to the site… (Budget: $250-750, Jobs: Bulk Marketing, eMarketing, Order Processing, Video Uploading, WordPress)