{"id":13989480,"url":"https://github.com/gorbin/ASNE","last_synced_at":"2025-07-22T11:30:28.954Z","repository":{"id":39614131,"uuid":"22425058","full_name":"gorbin/ASNE","owner":"gorbin","description":"ASNE library for simple integration of social networks: Twitter, Facebook, Google Plus, LinkedIn, Instagram, Vkontakte, Odnoklassniki","archived":false,"fork":false,"pushed_at":"2019-05-29T12:32:28.000Z","size":4428,"stargazers_count":883,"open_issues_count":61,"forks_count":227,"subscribers_count":87,"default_branch":"master","last_synced_at":"2024-11-29T08:39:10.269Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gorbin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-07-30T11:35:23.000Z","updated_at":"2024-10-12T06:41:45.000Z","dependencies_parsed_at":"2022-09-02T12:31:25.256Z","dependency_job_id":null,"html_url":"https://github.com/gorbin/ASNE","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/gorbin/ASNE","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gorbin%2FASNE","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gorbin%2FASNE/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gorbin%2FASNE/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gorbin%2FASNE/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gorbin","download_url":"https://codeload.github.com/gorbin/ASNE/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gorbin%2FASNE/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266483408,"owners_count":23936333,"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-07-22T02:00:09.085Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"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":[],"created_at":"2024-08-09T13:01:41.451Z","updated_at":"2025-07-22T11:30:28.160Z","avatar_url":"https://github.com/gorbin.png","language":"Java","funding_links":[],"categories":["Java","Social Networks"],"sub_categories":[],"readme":"Unfreeze project - merge all puls for master branch - current version was not tested - **NOT STABLE**\n\n**Sorry, but I freeze work on project for some time(I hope not long, nearly month) - too busy. I saw all Issues and will resolve them as soon as I can.** \n\n**I checked project - current maven libs mostly works fine. For now I need help with Issues and open for pull requests - will check them and merge on weekends.**\n\n![enter image description here][1]\n\nASNE        [![ASNE Maven Central](http://img.shields.io/badge/ASNE%20Maven%20Central-0.3.1-brightgreen.svg?style=flat)](http://search.maven.org/#search%7Cga%7C1%7Cg%3A%22com.github.asne%22) [![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-ASNE-brightgreen.svg?style=flat)](https://android-arsenal.com/details/1/868)\n=====================\nASNE library created for simple integration of social setworks to android applications. If you want to integrate your application with multiple social networks just choose ASNE modules and add them to your project. You just need to: add module, build SocialNetworkManager and configure your AndroidManiferst. \nASNE contains common interface for most popular social networks, but you can easily make module for another.\n\nASNE contains modules for social networks:\n - Twitter  \n - LinkedIn  \n - Facebook \n - Google Plus \n - Instagram\n - Vkontakte \n - Odnoklassniki\n\nTable of contents\n-----------\n[Features](https://github.com/gorbin/ASNE/blob/master/README.md#features)  \n[Documentation](https://github.com/gorbin/ASNE/blob/master/README.md#documentation)  \n[Demo app](https://github.com/gorbin/ASNE/blob/master/README.md#demo-app)  \n[Getting started](https://github.com/gorbin/ASNE/blob/master/README.md#getting-started)  \n[Important](https://github.com/gorbin/ASNE/blob/master/README.md#important)  \n[Developed By](https://github.com/gorbin/ASNE/blob/master/README.md#developed-by)  \n[License](https://github.com/gorbin/ASNE/blob/master/README.md#license)  \n\nFeatures\n-----------\nASNE got [almost all necessary requests](https://github.com/gorbin/ASNE/wiki/%D0%A1%D0%BF%D0%B8%D1%81%D0%BE%D0%BA-%D0%BC%D0%B5%D1%82%D0%BE%D0%B4%D0%BE%D0%B2-SocialNetwork) to social networks\n\n - Login\n - Configure necessary permissions\n - Get Access Token\n - Get current person social profile\n - Get social profile of user by id\n - Get social profile for array of users \n - Get detailed user profile\n - Share message\n - Share photo\n - Share link\n - Request Share dialog with message/photo/link\n - Check is user(by id) is friend of current\n - Get list of Friends\n - Adding friends by id\n - Remove friend from friend list\n - Any request to chosen social network - you got full SDK/API\n \n![enter image description here][3]\n\nDocumentation\n-----------\n[Javadoc](http://gorbin.github.io/ASNE/)\n\n[**Tutorial project on GitHub**](https://github.com/gorbin/ASNETutorial)\n\n[**Tutorial article on CodeProject**](http://www.codeproject.com/Articles/815900/Android-social-network-integration)\n\nDemo app\n====\n[Link for releases][4]\n\n\u003ca href=\"https://play.google.com/store/apps/details?id=com.gorbin.androidsocialnetworksextended.asne\"\u003e\n  \u003cimg alt=\"Get it on Google Play\"\n       src=\"https://developer.android.com//images/brand/ru_generic_rgb_wo_60.png\" /\u003e\n\u003c/a\u003e\n\nGetting started\n=====================\n\n**Adding library**\n\n_1) Using Maven Central_\n\nAdd dependency for chosen module, here example for all modules, you can choose one or two\n\n```\ndependencies {\n...\n    compile 'com.github.asne:asne-facebook:0.3.3'\n    compile 'com.github.asne:asne-twitter:0.3.3'\n    compile 'com.github.asne:asne-googleplus:0.3.3'\n    compile 'com.github.asne:asne-linkedin:0.3.3'\n    compile 'com.github.asne:asne-instagram:0.3.3'\n    compile 'com.github.asne:asne-vk:0.3.3'\n    compile 'com.github.asne:asne-odnoklassniki:0.3.3'\n...\n}\n```\n\n_2) Import module to your project_\n\nFor example, in AndroidStudio you can add modules via Gradle: \n\n 1. Copy social module to your project.\n 2. In settings.gradle include `':ASNECore', ':socialNetworkModuleName'`\n 3. In build.gradle of your app (YOUR_PROJECT/app/build.gradle) add new dependencies: `compile project(':socialNetworkModuleName') `\n\nWithout Gradle, add ASNE like: \n 1. Open Project Settings and choose Modules. \n 2. Find button \"Add\" (+), and choose Import module \n 3. Find ASNECore and socialNetworkModuleName directories - «Add». \n 4. Choose Create module from existing sources, then click \"Next\" rename module from \"main\" to \"ASNECore\". \n 5. Add new asne-module in dependencies to your app. \n\n**Using library**\n\nFirstly, you need to create app in social network. You can read about main steps:\n\n - [Twitter](https://github.com/gorbin/ASNE/wiki/Create-Twitter-App)\n - [LinkedIn](https://github.com/gorbin/ASNE/wiki/Create-LinkedIn-App)\n - [Facebook](https://github.com/gorbin/ASNE/wiki/Create-Facebook-App)\n - [Google Plus](https://github.com/gorbin/ASNE/wiki/Create-Google-Plus-app) \n - [Instagram](https://github.com/gorbin/ASNE/wiki/Create-Instagram-App)\n - [Vkontakte](https://github.com/gorbin/ASNE/wiki/Create-Vkontakte-App) \n - [Odnoklassniki](https://github.com/gorbin/ASNE/wiki/Create-Odnoklassniki-App)\n\nSecond, we need to catch response after login via social network login dialog:\n\n```java\n@Override\nprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n    super.onActivityResult(requestCode, resultCode, data);\n\n    Fragment fragment = getSupportFragmentManager().findFragmentByTag(BaseDemoFragment.SOCIAL_NETWORK_TAG);\n    if (fragment != null) {\n            fragment.onActivityResult(requestCode, resultCode, data);\n        }\n    }\n```\n\nThen, you need to initialize `mSocialNetworkManager`, it contain common interface for all ASNE social network modules. Initialize chosen social network and add social network to SocialNetworkManager(example: FacebookSocialNetwork):\n\n```java\nmSocialNetworkManager = (SocialNetworkManager) getFragmentManager().findFragmentByTag(SOCIAL_NETWORK_TAG);\n\tif (mSocialNetworkManager == null) {\n        mSocialNetworkManager = new SocialNetworkManager();\n\t\tFacebookSocialNetwork fbNetwork = new FacebookSocialNetwork(this, fbScope);\n\t\t//or from an activity\n\t\t//FacebookSocialNetwork fbNetwork = new FacebookSocialNetwork(mSocialNetworkManager, this, fbScope);\n        mSocialNetworkManager.addSocialNetwork(fbNetwork);\n        getFragmentManager().beginTransaction().add(mSocialNetworkManager, SOCIAL_NETWORK_TAG).commit();\n\t}\n```    \n     \nwhere `fbScope` is **permissions** for your app, for example I used:\n\n```java\nArrayList\u003cString\u003e fbScope = new ArrayList\u003cString\u003e();\nfbScope.addAll(Arrays.asList(\"public_profile, email, user_friends, user_location, user_birthday\"));\n```\n\n Then you can send requests to social network like:\n\n ```java\n\tmSocialNetworkManager.getVKSocialNetwork().requestLogin(new OnLoginCompleteListener() {\n        @Override\n        public void onLoginSuccess(int socialNetworkID) {\n\n        }\n\n        @Override\n        public void onError(int socialNetworkID, String requestID, String errorMessage, Object data) {\n\n        }\n    });\n```\n\nOr get Social network directly like:\n\n```java\n\tSession session = Session.getActiveSession();\n```\n\nImportant\n=====================\n\n**Facebook Upgrades**\n\nFacebook some permissions you can get only after Facebook submission, so my demo app wasn't submitted due low functionality. So if you want to use it with all functionality send me your facebook id and I add you as tester - this is easy way to to fully use demo app\nemail: gorbin.e.o@gmail.com\n\nApps are no longer able to retrieve the full list of a user's friends (only those friends who have specifically authorized your app using the user_friends permission) but if you add me as friend you will see me in friendlist([profile][6])\n\nDeveloped By\n=====================\nASNE developed on the basis of ([Android Social Networks][2]) mostly redone and add new features(some features are pulled to Android Social Networks)\n\nEvgeny Gorbin - \u003cgorbin.e.o@gmail.com\u003e\n\n\u003ca href=\"https://plus.google.com/108381948947848082245\"\u003e\n  \u003cimg alt=\"Follow me on Google+\"\n       src=\"https://raw.githubusercontent.com/gorbin/ASNE/master/resources/gp.png\" /\u003e\n\u003c/a\u003e\n\u003ca href=\"https://twitter.com/egorbin\"\u003e\n  \u003cimg alt=\"Follow me on Twitter\"\n       src=\"https://raw.githubusercontent.com/gorbin/ASNE/master/resources/twitter.png\" /\u003e\n\u003c/a\u003e\nLicense\n=====================\nASNE is made available under the MIT license: [MIT license](http://opensource.org/licenses/MIT):\n\n\u003cpre\u003e\nThe MIT License (MIT)\n\nCopyright (c) 2014 Evgrny Gorbin\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n\u003c/pre\u003e\n\n  [1]: https://raw.githubusercontent.com/gorbin/ASNE/master/resources/recomended.png\n  [2]: https://github.com/gorbin/AndroidSocialNetworks\n  [3]: https://raw.githubusercontent.com/gorbin/ASNE/master/resources/main.png\n  [4]: https://github.com/gorbin/ASNE/releases\n  [5]: https://github.com/gorbin/ASNE/releases/download/0.2/ASNE-debug-unaligned.apk\n  [6]: https://www.facebook.com/evgeny.gorbin\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgorbin%2FASNE","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgorbin%2FASNE","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgorbin%2FASNE/lists"}