windows9download

You Here : Home > Linux

Facebook 0.0.0 Alpha 1

OS Support:


Publisher

Publisher Old version

Update:

March 29 2012

Download:

Facebook 0.0.0 Alpha 1


Description

Facebook Facebook API is a simple library for accessing the Facebook API http://api.facebook.com. It will pass messages from your program (desktop or web-based) server REST Facebook. Please read the "Information" below for more details, especially if writing a desktop version.SYNOPSISuse Facebook; use CGI; my $ api_key = 'thisisprovidedbyfacebook'; soisthis my $ secret =''; my $ cgi = CGI-> new my $ f = Up-> new ($ api_key, $ secret); my $ session = $ cgi-> param ( 'session') # Set a previous request my $ auth_token = $ cgi-> param ( 'auth_token'); Sameif # (! (Defined $ session) & &! (defined auth_token $)) (print $ cgi-> redirect ( 'http://api.facebook.com/login. php? api_key = '. api_key $) exit;) elsif (defined auth_token) ($ f-> auth_token (auth_token $) if ($ f-> (session)) (print $ cgi-> redirect ('? session = '. $ f-> (session))) else (print $ cgi-> redirect ('?'); # again, something does not work) exit;) CONSTRUCTORSnew ($ api_key, $ secret) METHODS, login () auth_token ($ auth_token) Given a auth_token which has already undergone connection, enter the secret session and uid via call.call_method facebook.auth.getSession ($ method, $ param1key => $ param1value ... ) generate_sig (@ params) FacebookRestClient code based on Java. generateSigINFORMATIONDue to anti-phishing Approach to Facebook, you need to enable the user to connect via their web browser. When you write a web application, it is easy to manipulate (see synopsis above). For a desktop application is more complicated. You'll need to manually change the variable $ browser in Facebook.pm as web browser (ie, / usr / bin / firefox). If you have any Ideas on how to do it better, let me know.This library will store all the information they need to send requests as session. Requirements: Perl ·


Related Downloads


Software Tags

Facebook | Facebook 0.0.0 Alpha 1 | Facebook Free Download | Facebook Reviews | Download Facebook

Size :

Next/Pre