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?


In reply to Facebook::Graph without a webpage by Special_K

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.