Error creating twitter ACAccount on iOS5: NSURLErrorDomain error -1012

后端 未结 1 1678
别那么骄傲
别那么骄傲 2021-01-15 21:44

I am having trouble creating and saving a new twitter account to ACAccountStore on iOS5.

After performing all the steps to init the account, ACAc

相关标签:
1条回答
  • 2021-01-15 22:23

    I'm having the same trouble adding a Twitter account with ACAccount. However, I was able to create a Twitter account with ACAccount successfully using an authorized OAuth Access token and Access token secret, not the Consumer key and Consumer secret. (dev.twitter.com/apps->Twitter->OAuth->OAuth Setting-->Access token and Access token secret) This means that you still have to use an OAuth library to get an authorized Access token and Access token secret when the user is adding a Twitter account.

    Update: You can see how Twitter recommends that you migrate existing accounts to iOS5 system accounts here. That link provided me with the best example of how to add an ACAccount.

    0 讨论(0)
提交回复
热议问题