All Projects → iFanie → Roguin

iFanie / Roguin

Licence: Apache-2.0 license
One-stop-shop for Social Network integrations

Programming Languages

kotlin
9241 projects

Projects that are alternatives of or similar to Roguin

Social ids
Get user ids from social network handlers
Stars: ✭ 9 (-50%)
Mutual labels:  facebook, social-network
Facebookclientplugin
Facebook Client Plugin for Xamarin iOS and Android
Stars: ✭ 89 (+394.44%)
Mutual labels:  facebook, social-network
Social Post Bundle
Symfony bundle to publish status updates on Facebook, LinkedIn and Twitter.
Stars: ✭ 35 (+94.44%)
Mutual labels:  facebook, social-network
Opensource Socialnetwork
Open Source Social Network (OSSN) is a social networking software written in PHP. It allows you to make a social networking website and helps your members build social relationships, with people who share similar professional or personal interests. It is available in 16 international languages.
Stars: ✭ 710 (+3844.44%)
Mutual labels:  facebook, social-network
Socialblocklists
Blocklists to block the communication to social networking sites and privacy harming services
Stars: ✭ 161 (+794.44%)
Mutual labels:  facebook, social-network
Social Network Harvester V1.0
Stars: ✭ 5 (-72.22%)
Mutual labels:  facebook, social-network
Svelte Social Auth
Social Auth for Svelte v3
Stars: ✭ 86 (+377.78%)
Mutual labels:  facebook, social-network
Friends-Recommender-In-Social-Network
Friends Recommendation and Link Prediction in Social Netowork
Stars: ✭ 33 (+83.33%)
Mutual labels:  facebook, social-network
Sharer.js
🔛 🔖 Create your own social share buttons. No jquery.
Stars: ✭ 1,624 (+8922.22%)
Mutual labels:  facebook, social-network
Concierge
Modular chat bot. (Karma + Sassy + Hubot) * (Discord + Facebook + Messenger + Slack + Skype + Telegram + Hipchat + ...) = Concierge
Stars: ✭ 121 (+572.22%)
Mutual labels:  facebook, social-network
Koala
A lightweight Facebook library supporting the Graph, Marketing, and Atlas APIs, realtime updates, test users, and OAuth.
Stars: ✭ 3,506 (+19377.78%)
Mutual labels:  facebook, social-network
Whizzz-The-ChatApp
Whizzz is a real-time, one-to-one Android chat application made using Firebase, a beautiful user interface, and a push-notification feature.
Stars: ✭ 66 (+266.67%)
Mutual labels:  facebook, social-network
Laravel Social Auto Posting
🌈Laravel social auto posting
Stars: ✭ 306 (+1600%)
Mutual labels:  facebook, social-network
Ultimate Metatags
A large snippet for your page's <head> that includes all the meta tags you'll need for OPTIMAL sharing and SEO. Extensive work has been put into ensuring you have the optimal images for the most important social media platforms.
Stars: ✭ 24 (+33.33%)
Mutual labels:  facebook, social-network
DaProfiler
DaProfiler allows you to create a profile on your target based in France only. The particularity of this program is its ability to find the e-mail addresses your target.
Stars: ✭ 58 (+222.22%)
Mutual labels:  facebook, social-network
Network Avatar Picker
A npm module that returns user's social network avatar. Supported providers: facebook, instagram, twitter, tumblr, vimeo, github, youtube and gmail
Stars: ✭ 74 (+311.11%)
Mutual labels:  facebook, social-network
Easylogin
Login effortlessly with different social networks like Facebook, Twitter or Google Plus
Stars: ✭ 90 (+400%)
Mutual labels:  facebook, social-network
jQuery-Facebook-Stream
Display all your wall post, comments & likes in groups or fans page.
Stars: ✭ 24 (+33.33%)
Mutual labels:  facebook, social-network
awosome-ai-in-social-media
💻 Collect those AI & Bot use in social media wechat/facebook/twitter/instagram/weibo/TikTok etc.
Stars: ✭ 21 (+16.67%)
Mutual labels:  facebook, social-network
FacebookAds
This is an Android app that displays all the Facebook Mobile Ads based on Audience Network SDK. This repo uses all the major ad-types in a separate activity for all the ads.
Stars: ✭ 16 (-11.11%)
Mutual labels:  facebook

Roguin

License Bintray Android Arsenal

One stop shop for Social Network integrations

Use the same code for Google, Facebook and Twitter

What is Roguin

Social Network integrations can be a pain to write and maintain. This goes double if you want to add more than one Network into a single project. With Roguin, the whole process is simplified and Google, Facebook and Twitter are unified and handled with the same code.

You can add a 'Sing In With' feature for all three networks with the same exact code!

Preparation

Roguin helps with code but you still need valid Applications as per Social Network regulations and guidelines. So, you would still need to:

Installation

1. Dependency

implementation 'com.izikode.izilib:roguin:0.3'

2. Social Network Application keys

You must add your valid App key and secrets in Manifest placeholders, for both Facebook and Twitter. Google does not require this. So in your app's build.gradle file, add the following:

android {
    defaultConfig {
        manifestPlaceholders = [
                facebook_api_key   : 'my valid facebook app key',
                twitter_api_key    : 'my valid twitter app key',
                twitter_api_secret : 'my valid twitter app secret'
        ]
    }
}

3. Extend RoguinActivity

Every social network SDK uses the startActivityForResult in one way or another. In the spirit of making stuff as easy as possible, Roguin provides a Base Activity class, RoguinActivity which handles registering, unregistering, request codes and the lot. Just extend in your Activities and you are done.

4. Endpoint initialization

Prior to using, the Endpoints you need must be initialized. A good place to do this is in the onCreate of your app's Application class. And you can do so like this:

class MyApplication : Application() {
    override fun onCreate() {
        super.onCreate()

        GoogleEndpoint.initialize(this)
        FacebookEndpoint.initialize(this)
        TwitterEndpoint.initialize(this)
    }
}

Usage

All three wrappers, GoogleEndpoint, FacebookEndpoint and TwitterEndpoint, implement the RoguinEndpoint interface. So they all expose the following:

  • val isSignedIn for checking the Sign In status for your app.
  • fun requestSignIn for starting a new Sing In flow in your app.
  • fun requestSignOut for starting a new Sign Out flow in your app.
  • fun requestProfile for getting Basic Profile information of the logged in user.

The following code is an outtake from the demo project in this repository and shows how simple signing in and out of all three networks is with Roguin.

googleButton.setOnClickListener {
    if (googleEndpoint.isSignedIn) {
        googleEndpoint.requestSignOut { success ->
            if (success) {
                googleStatus.text = "Google is DISCONNECTED"
            }
        }
    } else {
        googleEndpoint.requestSignIn { success, token, error ->
            if (success) {
                googleStatus.text = "Google is CONNECTED"
            }
        }
    }
}

facebookButton.setOnClickListener {
    if (facebookEndpoint.isSignedIn) {
        facebookEndpoint.requestSignOut { success ->
            if (success) {
                facebookStatus.text = "Facebook is DISCONNECTED"
            }
        }
    } else {
        facebookEndpoint.requestSignIn { success, token, error ->
              if (success) {
                facebookStatus.text = "Facebook is CONNECTED"
            }
        }
    }
}

twitterButton.setOnClickListener {
    if (twitterEndpoint.isSignedIn) {
        twitterEndpoint.requestSignOut { success ->
            if (success) {
                twitterStatus.text = "Twitter is DISCONNECTED"
            }
        }
    } else {
        twitterEndpoint.requestSignIn { success, token, error ->
            if (success) {
                twitterStatus.text = "Twitter is CONNECTED"
            }
        }
    }
}

For a full example, see the sample app.

Licence

Copyright 2018 Fanis Veizis

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].