Processing
 

Twitter Digits for web - How to set default country in embeddable widget

15/08/2016 22:17#1

shah

Member

Joined at: 11 months ago

Post: 9

Thank: 0

Thanked: 0

I want to set my default country to +92 in Twitter Digits for web. This can be done on the button click event. But i don't want it on the button click.

function onLoginButtonClick(event){   Digits.logIn({     phoneNumber: '+92'   })     .done(onLogin) /*handle the response*/     .fail(onLoginFailure); } 

I want to display embeddable widget with my default country. Any possible solution?

24/08/2016 20:44Top#2

shah

Member

Joined at: 11 months ago

Post: 9

Thank: 0

Thanked: 0

After searching from a few days. I figured it out form twittercommunity that phoneNumber: '+92' , accountFields , theme can be passed to embed function

Digits.embed({   container: '#my-digits-container',   theme: {    /* Input fields borders */   },   phoneNumber: '+92',   accountFields: Digits.AccountFields.Email }) .done(onLogin) /*handle the response*/     .fail(onLoginFailure);   }; 
Similar articles

How do twitter giveaways work?

9 months ago - Reply: 2 - Views: 130

How may I get genuine followers on Twitter?

3 years ago - Reply: 33 - Views: 1,832

Login to Twitter sometime fail

7 months ago - Reply: 1 - Views: 27

Twitter doesn't accept PHP's cURL, but Linux'

1 year ago - Reply: 2 - Views: 92

Twitter OAuth on iOS

6 months ago - Reply: 1 - Views: 96

why am i getting an error on .verifyCredentials()

6 months ago - Reply: 1 - Views: 37

TwitteR setup_twitter_oauth() gives an error

6 months ago - Reply: 1 - Views: 31

Tweepy - Getting the author of a retweeted tweet

6 months ago - Reply: 0 - Views: 7

Retrieving data from twitter with JavaScript

6 months ago - Reply: 0 - Views: 4

Combined social media feed returning the wrong data

6 months ago - Reply: 0 - Views: 3

Django and Twitter request_token

6 months ago - Reply: 0 - Views: 3

Python HMAC hashed value encoding to base64

6 months ago - Reply: 1 - Views: 35

At the rate symbol in facebook

6 months ago - Reply: 0 - Views: 3

vé máy bay vé máy bay giá rẻ ve may bay ve may bay gia re vé máy bay vé máy bay giá rẻ ve may bay ve may bay gia re vé máy bay vé máy bay giá rẻ ve may bay ve may bay gia re vé máy bay vé máy bay giá rẻ ve may bay ve may bay gia re vé máy bay vé máy bay giá rẻ ve may bay ve may bay gia re vé máy bay vé máy bay giá rẻ ve may bay ve may bay gia re vé máy bay vé máy bay giá rẻ ve may bay ve may bay gia re