Talk:Login Desktop App

From Facebook Developer Wiki

Revision as of 16:05, 5 April 2009 by Pete Bratach (Talk | contribs)
(diff) ←Older revision | Current revision (diff) | Newer revision→ (diff)
Jump to: navigation, search

Contents

[edit] Additional information about why Desktop auth exists and what's different

Hopefully this will go some way to explain why the examples in the article are in PHP... http://code.google.com/p/facebook-java-api/wiki/DesktopMode

[edit] PHP in an article about desktop apps?

How is this a desktop app if its written in PHP? Sorry for the silly question, but it doesn't make much sense. There is not enough background given in the page. --506306287 08:42, 11 April 2008 (PDT)

I agree what's the deal with the PHP for a desktop app? I would like to see C or C# or some other desktop app language. This guide seems out of date with the new profile design authorization. 1181029451 20:13, 20 October 2008 (PDT)

[edit] Error

Fatal error: Call to undefined method FacebookRestClient::auth_createToken() in /home/.../facebook/index.php on line 25, using Apache/2.2.4 (Ubuntu) PHP/5.2.3-1ubuntu6

I think your missing the FB PHPlibrary. FB PHPlibrary is something you need on your server to use the FB API calls in PHP 1181029451 06:34, 11 November 2008 (PST)

[edit] New Profile design

This article could use an update to reflect the Login process for desktop apps using the New Profile design. 1181029451 06:36, 11 November 2008 (PST)

[edit] Extended permissions

The article needs to explain how to give user extended permissions in case of desktop applications. Facebook supports UI for granting extended permissions only in a browser. So how can I direct facebook to go through appropriate pages as part of login process?

[edit] Reusing sessions still active but temporary

I am building a python desktop app and i noticed that in order to for users to log on I need to call facebook.login() which means taking them to a page in their browser to login.

Trying to avoid having to login the user every time they start the app, I tried starting up the desktop app without calling facebook.login() and calling facebook.auth.getToken() and then directly followed by a call to facebook.auth.getSession(). you will get a token yes, but if you try to get a session... face book ERROR:100 'invalid parameter'.

as well as python programmers I'd also like input from other programmers from other languages too. PS: whats with the use of PHP in examples? None of us desktop-app developers ever use it...

[edit] Error in example code.

Okay, so I thought it'd be pretty simple to try this out.. until I went to test. It seems that there's one include missing from the example code, and that is:

require_once('facebook.php');

-- Miksago 01:32, 21 March 2009 (PDT)

reference