{"id":23050827,"url":"https://github.com/geta/socialchannels","last_synced_at":"2025-04-03T03:42:36.161Z","repository":{"id":38185237,"uuid":"67946516","full_name":"Geta/SocialChannels","owner":"Geta","description":null,"archived":false,"fork":false,"pushed_at":"2022-06-23T00:49:36.000Z","size":48250,"stargazers_count":1,"open_issues_count":6,"forks_count":0,"subscribers_count":21,"default_branch":"master","last_synced_at":"2025-02-08T17:44:44.046Z","etag":null,"topics":["cms","social"],"latest_commit_sha":null,"homepage":null,"language":"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/Geta.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2016-09-11T18:19:13.000Z","updated_at":"2021-05-12T08:06:30.000Z","dependencies_parsed_at":"2022-08-18T08:03:40.237Z","dependency_job_id":null,"html_url":"https://github.com/Geta/SocialChannels","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/Geta%2FSocialChannels","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Geta%2FSocialChannels/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Geta%2FSocialChannels/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Geta%2FSocialChannels/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Geta","download_url":"https://codeload.github.com/Geta/SocialChannels/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246933354,"owners_count":20857052,"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":["cms","social"],"created_at":"2024-12-15T23:38:43.790Z","updated_at":"2025-04-03T03:42:36.106Z","avatar_url":"https://github.com/Geta.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Geta Social Channels libraries\n\n* Master\u003cbr\u003e\n![](http://tc.geta.no/app/rest/builds/buildType:(id:GetaPackages_GetaSocialChannels_00ci),branch:master/statusIcon)\n## Description\nThis project contains 4 different packages for 3 different social media channels.\n\n* [Twitter](https://www.twitter.com)\n* [YouTube](https://www.youtube.com)\n* [Instagram](https://www.instagram.com)\n\n## Features\n* Integrations to social media channels\n* Twitter: get X tweets by username\n* Instagram: get posts by your Instagram Business Account\n* Instagram: get recent posts by hashtag\n* YouTube: get X feed by channel id\n\n## Installation\nAvailable through Geta's NuGet feed:\n- Geta.SocialChannels\n- Geta.SocialChannels.Twitter\n- Geta.SocialChannels.YouTube\n- Geta.SocialChannels.Instagram\n\nTo install Twitter\n```\nInstall-Package Geta.SocialChannels.Twitter\n```\n\nTo install YouTube\n```\nInstall-Package Geta.SocialChannels.YouTube\n```\n\nTo install Instagram\n```\nInstall-Package Geta.SocialChannels.Instagram\n```\n\nTo install Facebook\n```\nInstall-Package Geta.SocialChannels.Facebook\n```\n\n## Twitter\n\nSetting App Consumer Key and App Consumer Secret:\nStep 1. Go to your developer portal (https://developer.twitter.com/)\nStep 2. Create new app\nStep 2. Click on Keys and Access Tokens tab\n\nMore info: https://developer.twitter.com/en/docs/twitter-api\n\n### Examples\n\n```csharp\nvar twitterService = new TwitterService(\"apiKey\", \"secretKey\", new Cache());\nvar tweets = twitterService.GetTweets(new GetTweetsRequest{ UserName = \"Geta_digital\"})\n```\n\n## YouTube\nGets the videos for a channel. You'll need an [API key](https://developers.google.com/youtube/v3/getting-started) and also your channel ID.\n\nTo find Channel Id, sign in to Youtube and check [advanced your setting page](https://www.youtube.com/account_advanced)\n\n\n### Examples\n\n```csharp\nvar youTubeService = new YouTubeService(\"youtubeKey\", new Cache());\nvar feed = youTubeService.GetYoutubeFeed(new GetYoutubeFeedRequest{ ChannelId = \"channelId\"});\n```\n\n## Instagram\nGets the instagram posts of the business account associated with the token, or from a hashtag.\n1. Create new app: https://developers.facebook.com/docs/development/create-an-app\n2. Add Instagram Graph API: https://developers.facebook.com/docs/instagram-api/getting-started\n3. Go to Graph Api explorer and retrieve instagram_business_account associated for your page (use page access token) https://developers.facebook.com/docs/instagram-api/reference/page/\n4. Convert token to [Long-Lived Page Access Token](https://developers.facebook.com/docs/facebook-login/access-tokens/refreshing/#get-a-long-lived-page-access-token)\n\nTo retrieve the access token, see the documentation from Instagram: [https://developers.facebook.com/docs/facebook-login/access-tokens/](https://developers.facebook.com/docs/facebook-login/access-tokens/).\n\nFor production use probably your app needs to be approved by Facebook.\nNOTE: make sure that your instagram profile is a business account and is connected to Facebook page\n### Examples\n```csharp\nvar instagramService = new InstagramService(\"instagramAccessToken\", \"InstagramBusinessAccountId\", new Cache());\nvar postsBySelf = instagramService.GetMedia();\nvar postsByTag = instagramService.GetMediaByHashTag(\"geta\");\n```\n\n## Facebook\nGets Facebook feed by user name or account information by username. \n1. Create new app: https://developers.facebook.com/docs/development/create-an-app\n2. Go to Graph Api explorer and retrieve access token for your page\n3. Convert token to [Long-Lived Page Access Token](https://developers.facebook.com/docs/facebook-login/access-tokens/refreshing/#get-a-long-lived-page-access-token)\n\nTo retrieve the access token, see the documentation from Facebook: [https://developers.facebook.com/docs/facebook-login/access-tokens/](https://developers.facebook.com/docs/facebook-login/access-tokens/).\n\nFor production use probably your app needs to be approved by Facebook.\nIf you want to access other public pages, which are not associated with your App and token you need have following permission:\n[Page Public Content Access](https://developers.facebook.com/docs/apps/features-reference/page-public-content-access)\n\n####Useful tools:\n[Graph API Explorer](https://developers.facebook.com/tools/explorer/)\n\n[Access token debugger](https://developers.facebook.com/tools/debug/accesstoken/)\n\n### Examples\n```csharp\nvar facebookService = new FacebookService(\"accessToken\", new Cache());\nvar facebookFeed = facebookService.GetFacebookFeed(new FacebookFeedRequest\n{\n UserName = \"getatesting\"\n});\nvar accountInformation = facebookService.GetInformation(\"getatesting\");```\n```\n## Changelog\n[Changelog](CHANGELOG.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeta%2Fsocialchannels","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgeta%2Fsocialchannels","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeta%2Fsocialchannels/lists"}