{"id":18981432,"url":"https://github.com/awncorp/api-facebook","last_synced_at":"2025-08-29T17:39:46.643Z","repository":{"id":77256349,"uuid":"300956682","full_name":"awncorp/api-facebook","owner":"awncorp","description":"Facebook.com API Client","archived":false,"fork":false,"pushed_at":"2020-10-03T20:32:50.000Z","size":29,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-21T09:19:29.565Z","etag":null,"topics":["api-client","perl","perl5"],"latest_commit_sha":null,"homepage":"","language":"Perl","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/awncorp.png","metadata":{"files":{"readme":"README","changelog":"CHANGES","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-10-03T19:03:52.000Z","updated_at":"2022-07-24T20:54:36.000Z","dependencies_parsed_at":"2023-02-27T09:31:23.143Z","dependency_job_id":null,"html_url":"https://github.com/awncorp/api-facebook","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/awncorp/api-facebook","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/awncorp%2Fapi-facebook","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/awncorp%2Fapi-facebook/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/awncorp%2Fapi-facebook/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/awncorp%2Fapi-facebook/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/awncorp","download_url":"https://codeload.github.com/awncorp/api-facebook/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/awncorp%2Fapi-facebook/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272733348,"owners_count":24984261,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-29T02:00:10.610Z","response_time":87,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api-client","perl","perl5"],"created_at":"2024-11-08T16:09:49.309Z","updated_at":"2025-08-29T17:39:46.602Z","avatar_url":"https://github.com/awncorp.png","language":"Perl","funding_links":[],"categories":[],"sub_categories":[],"readme":"NAME\n\n    API::Facebook - Facebook.com API Client\n\nVERSION\n\n    version 0.04\n\nSYNOPSIS\n\n        use API::Facebook;\n    \n        my $facebook = API::Facebook-\u003enew(\n            access_token =\u003e 'ACCESS_TOKEN',\n            identifier   =\u003e 'IDENTIFIER',\n        );\n    \n        $facebook-\u003edebug(1);\n        $facebook-\u003efatal(1);\n    \n        my $feed = $facebook-\u003eme('feed');\n        my $results = $feed-\u003efetch;\n    \n        # after some introspection\n    \n        $feed-\u003eupdate( ... );\n\nDESCRIPTION\n\n    This distribution provides an object-oriented thin-client library for\n    interacting with the Facebook (http://facebook.com) API. For usage and\n    documentation information visit\n    https://developers.facebook.com/docs/graph-api. API::Facebook is\n    derived from API::Client and inherits all of it's functionality. Please\n    read the documentation for API::Client for more usage information.\n\nATTRIBUTES\n\n access_token\n\n        $facebook-\u003eaccess_token;\n        $facebook-\u003eaccess_token('ACCESS_TOKEN');\n\n    The access_token attribute should be set to an API access token\n    associated with your account.\n\n identifier\n\n        $facebook-\u003eidentifier;\n        $facebook-\u003eidentifier('IDENTIFIER');\n\n    The identifier attribute should be set to a string that identifies your\n    app.\n\n debug\n\n        $facebook-\u003edebug;\n        $facebook-\u003edebug(1);\n\n    The debug attribute if true prints HTTP requests and responses to\n    standard out.\n\n fatal\n\n        $facebook-\u003efatal;\n        $facebook-\u003efatal(1);\n\n    The fatal attribute if true promotes 4xx and 5xx server response codes\n    to exceptions, a API::Client::Exception object.\n\n retries\n\n        $facebook-\u003eretries;\n        $facebook-\u003eretries(10);\n\n    The retries attribute determines how many times an HTTP request should\n    be retried if a 4xx or 5xx response is received. This attribute\n    defaults to 1.\n\n timeout\n\n        $facebook-\u003etimeout;\n        $facebook-\u003etimeout(5);\n\n    The timeout attribute determines how long an HTTP connection should be\n    kept alive. This attribute defaults to 10.\n\n url\n\n        $facebook-\u003eurl;\n        $facebook-\u003eurl(Mojo::URL-\u003enew('https://graph.facebook.com'));\n\n    The url attribute set the base/pre-configured URL object that will be\n    used in all HTTP requests. This attribute expects a Mojo::URL object.\n\n user_agent\n\n        $facebook-\u003euser_agent;\n        $facebook-\u003euser_agent(Mojo::UserAgent-\u003enew);\n\n    The user_agent attribute set the pre-configured UserAgent object that\n    will be used in all HTTP requests. This attribute expects a\n    Mojo::UserAgent object.\n\nMETHODS\n\n action\n\n        my $result = $facebook-\u003eaction($verb, %args);\n    \n        # e.g.\n    \n        $facebook-\u003eaction('head', %args);    # HEAD request\n        $facebook-\u003eaction('options', %args); # OPTIONS request\n        $facebook-\u003eaction('patch', %args);   # PATCH request\n\n    The action method issues a request to the API resource represented by\n    the object. The first parameter will be used as the HTTP request\n    method. The arguments, expected to be a list of key/value pairs, will\n    be included in the request if the key is either data or query.\n\n create\n\n        my $results = $facebook-\u003ecreate(%args);\n    \n        # or\n    \n        $facebook-\u003ePOST(%args);\n\n    The create method issues a POST request to the API resource represented\n    by the object. The arguments, expected to be a list of key/value pairs,\n    will be included in the request if the key is either data or query.\n\n delete\n\n        my $results = $facebook-\u003edelete(%args);\n    \n        # or\n    \n        $facebook-\u003eDELETE(%args);\n\n    The delete method issues a DELETE request to the API resource\n    represented by the object. The arguments, expected to be a list of\n    key/value pairs, will be included in the request if the key is either\n    data or query.\n\n fetch\n\n        my $results = $facebook-\u003efetch(%args);\n    \n        # or\n    \n        $facebook-\u003eGET(%args);\n\n    The fetch method issues a GET request to the API resource represented\n    by the object. The arguments, expected to be a list of key/value pairs,\n    will be included in the request if the key is either data or query.\n\n update\n\n        my $results = $facebook-\u003eupdate(%args);\n    \n        # or\n    \n        $facebook-\u003ePUT(%args);\n\n    The update method issues a PUT request to the API resource represented\n    by the object. The arguments, expected to be a list of key/value pairs,\n    will be included in the request if the key is either data or query.\n\nRESOURCES\n\n achievement\n\n        $facebook-\u003eresource(param('achievement'));\n\n    The achievement resource returns a new instance representative of the\n    API resource requested. This method accepts a list of path segments\n    which will be used in the HTTP request. The following documentation can\n    be used to find more information.\n    https://developers.facebook.com/docs/graph-api/reference/achievement.\n\n achievement_type\n\n        $facebook-\u003eresource(param('achievement_type'));\n\n    The achievement_type resource returns a new instance representative of\n    the API resource requested. This method accepts a list of path segments\n    which will be used in the HTTP request. The following documentation can\n    be used to find more information.\n    https://developers.facebook.com/docs/graph-api/reference/achievement_ty\n    pe.\n\n ad_campaign\n\n        $facebook-\u003eresource(param('ad-campaign'));\n\n    The ad_campaign resource returns a new instance representative of the\n    API resource requested. This method accepts a list of path segments\n    which will be used in the HTTP request. The following documentation can\n    be used to find more information.\n    https://developers.facebook.com/docs/marketing-api/reference/ad-campaig\n    n.\n\n ad_campaign_group\n\n        $facebook-\u003eresource(param('ad-campaign-group'));\n\n    The ad_campaign_group resource returns a new instance representative of\n    the API resource requested. This method accepts a list of path segments\n    which will be used in the HTTP request. The following documentation can\n    be used to find more information.\n    https://developers.facebook.com/docs/marketing-api/reference/ad-campaig\n    n-group.\n\n ad_image\n\n        $facebook-\u003eresource(param('ad-image'));\n\n    The ad_image resource returns a new instance representative of the API\n    resource requested. This method accepts a list of path segments which\n    will be used in the HTTP request. The following documentation can be\n    used to find more information.\n    https://developers.facebook.com/docs/marketing-api/reference/ad-image.\n\n ad_label\n\n        $facebook-\u003eresource(param('ad-label'));\n\n    The ad_label resource returns a new instance representative of the API\n    resource requested. This method accepts a list of path segments which\n    will be used in the HTTP request. The following documentation can be\n    used to find more information.\n    https://developers.facebook.com/docs/marketing-api/reference/ad-label.\n\n app_request\n\n        $facebook-\u003eresource(param('app-request'));\n\n    The app_request resource returns a new instance representative of the\n    API resource requested. This method accepts a list of path segments\n    which will be used in the HTTP request. The following documentation can\n    be used to find more information.\n    https://developers.facebook.com/docs/graph-api/reference/app-request.\n\n application\n\n        $facebook-\u003eresource(param('application'));\n\n    The application resource returns a new instance representative of the\n    API resource requested. This method accepts a list of path segments\n    which will be used in the HTTP request. The following documentation can\n    be used to find more information.\n    https://developers.facebook.com/docs/graph-api/reference/application.\n\n application_context\n\n        $facebook-\u003eresource(param('application-context'));\n\n    The application_context resource returns a new instance representative\n    of the API resource requested. This method accepts a list of path\n    segments which will be used in the HTTP request. The following\n    documentation can be used to find more information.\n    https://developers.facebook.com/docs/graph-api/reference/application-co\n    ntext.\n\n friend_list\n\n        $facebook-\u003eresource(param('friend-list'));\n\n    The friend_list resource returns a new instance representative of the\n    API resource requested. This method accepts a list of path segments\n    which will be used in the HTTP request. The following documentation can\n    be used to find more information.\n    https://developers.facebook.com/docs/graph-api/reference/friend-list.\n\n hashtag\n\n        $facebook-\u003eresource(param('hashtag'));\n\n    The hashtag resource returns a new instance representative of the API\n    resource requested. This method accepts a list of path segments which\n    will be used in the HTTP request. The following documentation can be\n    used to find more information.\n    https://developers.facebook.com/docs/graph-api/reference/hashtag.\n\n life_event\n\n        $facebook-\u003eresource(param('life-event'));\n\n    The life_event resource returns a new instance representative of the\n    API resource requested. This method accepts a list of path segments\n    which will be used in the HTTP request. The following documentation can\n    be used to find more information.\n    https://developers.facebook.com/docs/graph-api/reference/life-event.\n\n mailing_address\n\n        $facebook-\u003eresource(param('mailing-address'));\n\n    The mailing_address resource returns a new instance representative of\n    the API resource requested. This method accepts a list of path segments\n    which will be used in the HTTP request. The following documentation can\n    be used to find more information.\n    https://developers.facebook.com/docs/graph-api/reference/mailing-addres\n    s.\n\n offsite_pixel\n\n        $facebook-\u003eresource(param('offsite-pixel'));\n\n    The offsite_pixel resource returns a new instance representative of the\n    API resource requested. This method accepts a list of path segments\n    which will be used in the HTTP request. The following documentation can\n    be used to find more information.\n    https://developers.facebook.com/docs/graph-api/reference/offsite-pixel.\n\n open_graph_context\n\n        $facebook-\u003eresource(param('open-graph-context'));\n\n    The open_graph_context resource returns a new instance representative\n    of the API resource requested. This method accepts a list of path\n    segments which will be used in the HTTP request. The following\n    documentation can be used to find more information.\n    https://developers.facebook.com/docs/graph-api/reference/open-graph-con\n    text.\n\n page\n\n        $facebook-\u003eresource(param('page'));\n\n    The page resource returns a new instance representative of the API\n    resource requested. This method accepts a list of path segments which\n    will be used in the HTTP request. The following documentation can be\n    used to find more information.\n    https://developers.facebook.com/docs/graph-api/reference/page.\n\n photo\n\n        $facebook-\u003eresource(param('photo'));\n\n    The photo resource returns a new instance representative of the API\n    resource requested. This method accepts a list of path segments which\n    will be used in the HTTP request. The following documentation can be\n    used to find more information.\n    https://developers.facebook.com/docs/graph-api/reference/photo.\n\n place_tag\n\n        $facebook-\u003eresource(param('place-tag'));\n\n    The place_tag resource returns a new instance representative of the API\n    resource requested. This method accepts a list of path segments which\n    will be used in the HTTP request. The following documentation can be\n    used to find more information.\n    https://developers.facebook.com/docs/graph-api/reference/place-tag.\n\n product_catalog\n\n        $facebook-\u003eresource(param('product-catalog'));\n\n    The product_catalog resource returns a new instance representative of\n    the API resource requested. This method accepts a list of path segments\n    which will be used in the HTTP request. The following documentation can\n    be used to find more information.\n    https://developers.facebook.com/docs/marketing-api/reference/product-ca\n    talog.\n\n product_feed\n\n        $facebook-\u003eresource(param('product-feed'));\n\n    The product_feed resource returns a new instance representative of the\n    API resource requested. This method accepts a list of path segments\n    which will be used in the HTTP request. The following documentation can\n    be used to find more information.\n    https://developers.facebook.com/docs/graph-api/reference/product-feed.\n\n product_feed_upload\n\n        $facebook-\u003eresource(param('product-feed-upload'));\n\n    The product_feed_upload resource returns a new instance representative\n    of the API resource requested. This method accepts a list of path\n    segments which will be used in the HTTP request. The following\n    documentation can be used to find more information.\n    https://developers.facebook.com/docs/graph-api/reference/product-feed-u\n    pload.\n\n product_feed_upload_error\n\n        $facebook-\u003eresource(param('product-feed-upload-error'));\n\n    The product_feed_upload_error resource returns a new instance\n    representative of the API resource requested. This method accepts a\n    list of path segments which will be used in the HTTP request. The\n    following documentation can be used to find more information.\n    https://developers.facebook.com/docs/graph-api/reference/product-feed-u\n    pload-error.\n\n product_group\n\n        $facebook-\u003eresource(param('product-group'));\n\n    The product_group resource returns a new instance representative of the\n    API resource requested. This method accepts a list of path segments\n    which will be used in the HTTP request. The following documentation can\n    be used to find more information.\n    https://developers.facebook.com/docs/graph-api/reference/product-group.\n\n product_item\n\n        $facebook-\u003eresource(param('product-item'));\n\n    The product_item resource returns a new instance representative of the\n    API resource requested. This method accepts a list of path segments\n    which will be used in the HTTP request. The following documentation can\n    be used to find more information.\n    https://developers.facebook.com/docs/graph-api/reference/product-item.\n\n product_set\n\n        $facebook-\u003eresource(param('product-set'));\n\n    The product_set resource returns a new instance representative of the\n    API resource requested. This method accepts a list of path segments\n    which will be used in the HTTP request. The following documentation can\n    be used to find more information.\n    https://developers.facebook.com/docs/graph-api/reference/product-set.\n\n promotion_info\n\n        $facebook-\u003eresource(param('promotion-info'));\n\n    The promotion_info resource returns a new instance representative of\n    the API resource requested. This method accepts a list of path segments\n    which will be used in the HTTP request. The following documentation can\n    be used to find more information.\n    https://developers.facebook.com/docs/graph-api/reference/promotion-info\n    .\n\n user\n\n        $facebook-\u003eresource(param('user'));\n\n    The user resource returns a new instance representative of the API\n    resource requested. This method accepts a list of path segments which\n    will be used in the HTTP request. The following documentation can be\n    used to find more information.\n    https://developers.facebook.com/docs/graph-api/reference/user.\n\n user_context\n\n        $facebook-\u003eresource(param('user-context'));\n\n    The user_context resource returns a new instance representative of the\n    API resource requested. This method accepts a list of path segments\n    which will be used in the HTTP request. The following documentation can\n    be used to find more information.\n    https://developers.facebook.com/docs/graph-api/reference/user-context.\n\n video\n\n        $facebook-\u003eresource(param('video'));\n\n    The video resource returns a new instance representative of the API\n    resource requested. This method accepts a list of path segments which\n    will be used in the HTTP request. The following documentation can be\n    used to find more information.\n    https://developers.facebook.com/docs/graph-api/reference/video.\n\n video_broadcast\n\n        $facebook-\u003eresource(param('video-broadcast'));\n\n    The video_broadcast resource returns a new instance representative of\n    the API resource requested. This method accepts a list of path segments\n    which will be used in the HTTP request. The following documentation can\n    be used to find more information.\n    https://developers.facebook.com/docs/graph-api/reference/video-broadcas\n    t.\n\n video_list\n\n        $facebook-\u003eresource(param('video-list'));\n\n    The video_list resource returns a new instance representative of the\n    API resource requested. This method accepts a list of path segments\n    which will be used in the HTTP request. The following documentation can\n    be used to find more information.\n    https://developers.facebook.com/docs/graph-api/reference/video-list.\n\nAUTHOR\n\n    Al Newkirk \u003canewkirk@ana.io\u003e\n\nCOPYRIGHT AND LICENSE\n\n    This software is copyright (c) 2014 by Al Newkirk.\n\n    This is free software; you can redistribute it and/or modify it under\n    the same terms as the Perl 5 programming language system itself.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fawncorp%2Fapi-facebook","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fawncorp%2Fapi-facebook","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fawncorp%2Fapi-facebook/lists"}