Special_K has asked for the wisdom of the Perl Monks concerning the following question:

Hello, I am trying to create a perl script using Facebook::Graph but without a webpage. I have already registered an app on the facebook developer's page and obtained my api key and secret key. I have been studying examples of how the Facebook::Graph module works, but all seem to involve accessing the app from a webpage. Isn't it possible to access one's own facebook data from a command line perl script provided you authenticate correctly?

I found this tutorial here: http://search.cpan.org/~rizen/Facebook-Graph-1.0600/lib/Facebook/Graph/Cookbook/Recipe1.pod but have encountered two problems:

1. The page above contains the following instructions:

After creating your application, go to the "Connect" tab. Fill in the "Connect URL" field. It should be something like http://www.yourapplication.com/facebook/. It is the base URL to where you'll be deploying your application. The trailing slash is required. Click "save".

I do not see a "Connect" tab anywhere on my facebook app page. Was that in an old version of facebook?

2. The instructions above make reference to an authorization redirect page. As I will be the only one using the application and will be doing so from a command line, I figure there must be a way to "hard code" my user information into the script (or a file accessed by the script) so that facebook always knows it's me when the script runs, and therefore doesn't have to use authorization redirect URLs.

Can anyone give me some tips on how to get started?

Replies are listed 'Best First'.
Re: Facebook::Graph without a webpage
by Anonymous Monk on Sep 21, 2013 at 17:01 UTC