1

As I am trying to integrate twitter in my android app. But its Logging through browser and how to call back to my app. Its redirecting to callback URL that i specified in

apps.twitter.com/app/•••••••

As i tried, different URLs in my app callback URL.

twitter app://connect
app://twitter

and intent in manifest file.

Prasad
  • 119
  • 11

1 Answers1

2

You have to declare callback in your AndroidManifest.xml file.

your callback url :

public static final String TWITTER_CALLBACK_URL = "x-oauthflow-twitter://twitterlogin";

your AndroidManifest.xml file :

   <activity
        android:name=".MainActivity">
      <intent-filter>
            <action android:name="android.intent.action.VIEW" />

            <category android:name="android.intent.category.DEFAULT" />
            <category android:name="android.intent.category.BROWSABLE" />

            <data
                android:host="twitterlogin"
                android:scheme="x-oauthflow-twitter" />
        </intent-filter>
       </activity>
Roshni
  • 256
  • 1
  • 4
  • 16