Answer the question
In order to leave comments, you need to log in
How to automatically send tweets in Xcode?
For three days I have been trying to ensure that during the execution of the program the program could publish a tweet with the specified content at the right time with a given login -password combination.
I dealt with requests and JSON here, but I realized that in them, for any reason, it is necessary for the user to enter his password and login himself. I also want the tweet to always leave the application account, whose login and password are already fixed. Preferably without user intervention
I would be glad to hear any thoughts.
(I want to send highscores from the game to Twitter, using it as a Highscore board along the way)
Answer the question
In order to leave comments, you need to log in
I didn’t quite understand the question - do you need the user to publish results on his own behalf or from your account? If from his own, then he must either enter his login / password or use the standard Twitter framework.
If it is necessary that tweets be on behalf of some of your service accounts, then you need to:
1. Create a dedicated service for publishing (for example, use Parse.com or raise it on DigitalOcean)
2. Implement a publishing mechanism on it (for example, using this libraries )
3. The application must send data to this service, and it already publishes them on behalf of your special account.
Authorization: https://dev.twitter.com/oauth/3-legged
Publication: https://dev.twitter.com/rest/reference/post/status...
Right after the page loads, there is not a single .active element on it, and you are trying to hover a click handler on a non-existent element.
You can redo it somehow like this: https://jsfiddle.net/pvsockvf/1/
Even better, as suggested by Maxim Timofeev , with toggleClass()
https://jsfiddle.net/pvsockvf/2/
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question