Exemplo n.º 1
0
////////////////////////////////////////////////////////////////////////////////
// Step Two: Run the FbcmdInitInclude() procedure
FbcmdIncludeInit();
////////////////////////////////////////////////////////////////////////////////
// Step Three: Add any arguments to be appended automatically
FbcmdIncludeAddArgument('-quiet=0');
FbcmdIncludeAddArgument('-facebook_debug=0');
////////////////////////////////////////////////////////////////////////////////
// Step Four: List your new commands so that FBCMD will recognize them
FbcmdIncludeAddCommand('FNAMES', 'Display all your friend\'s names');
FbcmdIncludeAddCommand('MYNOTES', 'Display all of your notes');
FbcmdIncludeAddCommand('SINGLE', 'Display all of your single friends');
FbcmdIncludeAddCommand('FLSTREAM', 'flist~Get last 150 post from your friend wallpaper');
FbcmdIncludeAddCommand('PCOMMENTS', 'postid~Get last 150 comments from specified postid');
FbcmdIncludeAddCommand('OINFO', '[uids list]~Get finfo for user from uids list');
FbcmdIncludeAddCommand('OMUTUAL', '[uids list]~Get friends of friends mutual friends');
////////////////////////////////////////////////////////////////////////////////
// Step Five: Include (run) FBCMD
require dirname(__FILE__) . '/../fbcmd.php';
////////////////////////////////////////////////////////////////////////////////
// Step Six: Add your own commands:
if ($fbcmdCommand == 'FNAMES') {
    GetFlistIds("=all");
    foreach ($flistMatchArray as $friendId) {
        print ProfileName($friendId) . "\n";
    }
}
if ($fbcmdCommand == 'MYNOTES') {
    $fbReturn = $fbObject->api_client->notes_get($fbUser);
    foreach ($fbReturn as $note) {
        print "{$note['title']}\n\n{$note['content']}\n\n\n";
Exemplo n.º 2
0
// http http://fbcmd.dtompkins.com/contribute
////////////////////////////////////////////////////////////////////////////////
// Step One: include the fbcmd_include.php
require 'fbcmd_include.php';
////////////////////////////////////////////////////////////////////////////////
// Step Two: Run the FbcmdInitInclude() procedure
FbcmdIncludeInit();
////////////////////////////////////////////////////////////////////////////////
// Step Three: Add any arguments to be appended automatically
FbcmdIncludeAddArgument('-quiet=0');
FbcmdIncludeAddArgument('-facebook_debug=0');
////////////////////////////////////////////////////////////////////////////////
// Step Four: List your new commands so that FBCMD will recognize them
FbcmdIncludeAddCommand('FNAMES', 'Display all your friend\'s names');
FbcmdIncludeAddCommand('MYNOTES', 'Display all of your notes');
FbcmdIncludeAddCommand('SINGLE', 'Display all of your single friends');
////////////////////////////////////////////////////////////////////////////////
// Step Five: Include (run) FBCMD
require '../fbcmd.php';
////////////////////////////////////////////////////////////////////////////////
// Step Six: Add your own commands:
if ($fbcmdCommand == 'FNAMES') {
    GetFlistIds("=all");
    foreach ($flistMatchArray as $friendId) {
        print ProfileName($friendId) . "\n";
    }
}
if ($fbcmdCommand == 'MYNOTES') {
    $fbReturn = $fbObject->api_client->notes_get($fbUser);
    foreach ($fbReturn as $note) {
        print "{$note['title']}\n\n{$note['content']}\n\n\n";