{"id":18772414,"url":"https://github.com/shu223/socialapihelpers","last_synced_at":"2025-04-13T08:31:10.494Z","repository":{"id":9923451,"uuid":"11935261","full_name":"shu223/SocialAPIHelpers","owner":"shu223","description":"Twitter and Facebook API Helper classes for iOS using Social.framework","archived":false,"fork":false,"pushed_at":"2016-01-06T02:56:48.000Z","size":172,"stargazers_count":20,"open_issues_count":0,"forks_count":5,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-05-01T20:40:32.048Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/shu223.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-08-06T21:41:58.000Z","updated_at":"2024-05-01T20:40:32.049Z","dependencies_parsed_at":"2022-09-06T10:32:17.148Z","dependency_job_id":null,"html_url":"https://github.com/shu223/SocialAPIHelpers","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shu223%2FSocialAPIHelpers","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shu223%2FSocialAPIHelpers/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shu223%2FSocialAPIHelpers/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shu223%2FSocialAPIHelpers/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shu223","download_url":"https://codeload.github.com/shu223/SocialAPIHelpers/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223576400,"owners_count":17167861,"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","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":[],"created_at":"2024-11-07T19:28:55.560Z","updated_at":"2024-11-07T19:28:56.406Z","avatar_url":"https://github.com/shu223.png","language":"Objective-C","readme":"Social API Helpers\n======================\n\n**Twitter and Facebook API Helper classes** for iOS using Social.framework. It works on iOS 6 or later.\n\n##How to install\n\nAdd to Podfile.\n\n```\npod 'SocialAPIHelpers', :git =\u003e 'https://github.com/shu223/SocialAPIHelpers'\n```\n\n##EXAMPLES: Authorization\n\n\u003cimg src=\"images_for_readme/example1.png\" width=\"240\"\u003e\n\n###Request access to Twitter\n\nJust call 1 method.\n\n```\n[TTMAccountHelper requestAccessToTwitterAccountsWithHandler:^(NSError *error) {\n}];\n```\n\n\n###Request access to Facebook\n\nCreate a dictionary for options (permissions) and call the request method.\n\n```\nNSDictionary *options = [TTMAccountHelper optionsToReadStreamOnFacebookWithAppId:kFacebookAppId];\n\n[TTMAccountHelper requestAccessToAccountsWithType:ACAccountTypeIdentifierFacebook\n                                          options:options\n                                          handler:^(NSError *error) {\n                                          }];\n```\n\n\n###Multi-account support\n\n```\nNSArray *accounts = [TTMAccountHelper twitterAccounts];\n\nif ([accounts count] \u003e= 2) {\n \n [TTMAccountHelper showAccountSelectWithDelegate:self\n                                          inView:self.view];\n}\n```\n\n\u003cimg src=\"images_for_readme/example2.png\" width=\"240\"\u003e\n\n\n##EXAMPLES: Access to Twitter API\n\n###Getting user information\n\n####Me\n\n```\n[TTMTwitterAPIHelper userInformationForAccount:account\n                                       handler:\n ^(id result, NSError *error) {\n     \n     NSLog(@\"result:%@, error:%@\", result, error);\n }];\n```\n\n####Other users\n\n```\n[TTMTwitterAPIHelper userInformationWithScreenName:screenName\n                                           account:account\n                                           handler:\n ^(id result, NSError *error) {\n     \n     NSLog(@\"result:%@, error:%@\", result, error);\n }];\n```\n\n###Read Timeline\n\n####Home\n\n```\n[TTMTwitterAPIHelper homeTimelineForAccount:account\n                                    handler:\n ^(id result, NSError *error) {\n\n     NSLog(@\"result:%@, error:%@\", result, error);\n }];\n```\n\n####User\n\n```\n[TTMTwitterAPIHelper userTimelineWithScreenName:@\"shu223\"\n                                        account:account\n                                        handler:\n ^(id result, NSError *error) {\n\n     NSLog(@\"result:%@, error:%@\", result, error);\n }];\n```\n\n##EXAMPLES: Access to Facebook API\n\n###News Feed\n\n```\n[TTMFacebookAPIHelper newsfeedForAccount:account\n                                 handler:\n ^(id result, NSError *error) {\n \n     NSLog(@\"result:%@, error:%@\", result, error);\n }];\n```\n\n###Friends\n\n```\n[TTMFacebookAPIHelper friendsForAccount:account\n                                handler:\n ^(NSArray *friends, NSDictionary *result, NSError *error) {\n\n     NSLog(@\"friends:%@, result:%@\", friends, result);\n }];\n```\n\nOne of returning value `frineds` is an array of \"[TTMFacebookProfile](https://github.com/shu223/SocialAPIHelpers/blob/master/SocialAPIHelpers/TTMFacebookProfile.h)\" objects.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshu223%2Fsocialapihelpers","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshu223%2Fsocialapihelpers","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshu223%2Fsocialapihelpers/lists"}