-
Notifications
You must be signed in to change notification settings - Fork 227
Home
ASNE library created for simple integration of Social Networks. 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. ASNE contains common interface for most popular social networks, but you can easily make module for another.
ASNE contains modules for social networks:
- Google Plus
- Vkontakte
- Odnoklassniki
ASNE got almost all necessary requests to social networks
- Login
- Configure necessary permissions
- Get Access Token
- Get current person social profile
- Get social profile of user by id
- Get social profile for array of users
- Get detailed user profile
- Share message
- Share photo
- Share link
- Request Share dialog with message/photo/link
- Check is user(by id) is friend of current
- Get list of Friends
- Adding friends by id
- Remove friend from friend list
If you want to use Google Plus, add this to your MainActivity:
@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
super.onActivityResult(requestCode, resultCode, data);
/**
* This is required only if you are using Google Plus, the issue is that there SDK
* require Activity to launch Auth, so library can't receive onActivityResult in fragment
*/
Fragment fragment = getSupportFragmentManager().findFragmentByTag(BaseDemoFragment.SOCIAL_NETWORK_TAG);
if (fragment != null) {
fragment.onActivityResult(requestCode, resultCode, data);
}
}
Facebook Upgrades
Facebook 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 email: [email protected]
Apps 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)
ASNE developed on the basis of (Android Social Networks) mostly redone and add new features(some features are pulled to Android Social Networks)
Evgeny Gorbin - [email protected]
ASNE is made available under the MIT license: MIT license:
The MIT License (MIT) Copyright (c) 2014 Evgrny Gorbin Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.