Log in with twitter4j callback

后端 未结 2 2066
挽巷
挽巷 2021-01-03 16:51

I try to write an application where an user can log in on twitter. I use twitter4j like library.My problem is that when I go in the page where I must put username and passwo

2条回答
  •  没有蜡笔的小新
    2021-01-03 17:16

    Make sure your callback URL in twitter dev app options are as follows,

    http://YOUR-URL/app://YOUR-APP-HOST
    

    and within your android manifest file, in between the of the actvitiy that takes you to twitter, make sure you define:

             
                
                
                
                
              
    

    lastly, make sure in your program,

    final public static String CALLBACK_URL = "app://YOUR-APP-HOST";
    

提交回复
热议问题