Twitter widget android - twitter

Is there anyone now how to make widget like twitter?
They have 2 layout and user can user one of them after they see the layout.
Thank u very much..

Here's a tutorial to do the sending part. It uses OAuth for the Twitter authentication: http://www.androidacademy.com/3-tutorials/43-hands-on/249-twitterwidget-how-to-write-an-android-widget-which-tweets

Related

How to use "Continue as {name}" Facebook button with Rails + Devise + Oauth?

I've successfully added a Sign in with Facebook feature to my Rails 5 app with Devise and Omniauth.
Instead of my static button, I'd like to implement Facebook's embed "Continue as {name}" login button. In their documentation they'll produce the following code for you to implement:
<div class="fb-login-button" data-size="large" data-button-type="continue_with" data-auto-logout-link="false" data-use-continue-as="true"></div>
Just implementing it like that obviously doesn't work. I'd really like to be able to handle it in a way where I can specify it to direct to my user_facebook_omniauth_authorize_path. How do I do that?
I've implemented Facebook SDK on the website.
Thank you in advance. Your help is much appreciated! :-)
Omniauth uses the server-side login flow, whereas this button is part of the client-side login flow.
Only by being embedded on the client side can it determine whether there is a logged-in Facebook user in the first place - on the server side, that info isn’t available.
The server- and the client-side auth flow have quite significant differences, so I doubt you would be able to implement this, without rewriting how login is handled almost completely.

Iphone Application is automatically connected to Facebook and Twitter

I have a Objective-C code and it is connecting to twitter and facebook automatically. (for example if iphone has a twitter application and application connected to twitter, my application doesn't ask username and password, it is connecting automatically) and customer doesn't want this feature.
I didn't write this this code and unfortunately my objective-c and XCode knowledge is really very bad :(
Can you give me an idea which why the code is connected automatically and how can I cancel this?
Thanks in advance.
I think in Setting of iphone check Facebook & twitter App. There you entered username & password. If you logout from there then try to post something from your app on Facebook or twitter .It will ask for Login. Before that first search for "SLComposeViewController" in your code. If this is there then remove it. Then try. Hope this will help.

how to share fixed data on facebook if used omniauth for authentication

I have used omniauth for authentication of user in rails. i just want to create a button on my site which when clicked should post to logged in users facebook profile a certain fixed data.
i have tried facebook_share gem but unable to specify the predefine text. kindly help me in this
thanks in advance
In place of facebook_share the better way is to use facebook api. link explains all
https://github.com/aayushkhandelwal11/training-assignment/blob/master/facebookshare.txt

How to integrate facebook comments in Rails application?

I've set up a Rails 3.2 application with Devise. I was wondering how I can allow users to comment using Facebook. Can I use facebook connect along with Devise? If I can, is it ok to have 2 methods of authentication on my site?
I've read some tutorials on setting up OAuth with Devise to allow facebook connect, but it's not all that clear to me. Does anyone know a good step-by-step tutorial on how to integrate facebook comments with Devise already set up? Thanks a lot!
You don't need to setup Facebook Connect for comments.
You have to first create a Facebook app, then generate the comments plugin. After, put the Javascript code in your application.html.erb after the body tag (my suggestion is to make a partial). In the end, drop the div with the fb-comments class where you want the comments box to appear.

Post with Twitter API and PHP

I am new to Twitter API and in twitter in general so I have some questions. I have a web site and I want to add a button for sharing a message (for example "Hello World", taken from my site) to a user's twitter page.
First of all I have created an application in twitter, call myTwitterApp and I want to post through this. When the user clicks the button I want to see the authentication page, for login, and then after login I want to see my message inside the editable input, being able to be changed my the user. And finally I want the user to post it by clicking the tweet button, but continue saying that the post was "via myTwitterApp".
Does anyone have an idea how to do it or how to search about it?
Thanks in advance.
I have some experience with the twitter api lately, but not comprehensively. so I can only give you some kind of direction, and hopefully this will help you. So the idea is that you should understand how the Oauth protocol works, steps like requestToken->accessToken->api calls. there is a tutorial for beginners here http://oauth.net/documentation/getting-started/, you shold take a look. if you have manage to go through the oauth authentication, then you should be able to call the POST method which you can post contents to Twitter. you can search for Twitter oauth api, there are a bunch of them online. grab one and use it.

Resources