I am using Twitter OAuth. When a user clicks on link on my website, twitter asks user to login to allow my application to authorize. After user has authorized my application, I want him to automatically follow me. Is there a way to do that? Or it is not possible and user has to click on "Follow" button to follow me?
You can make the user create a friendship with you using this method
https://dev.twitter.com/docs/api/1/post/friendships/create
Couldn't find solution to it. I guess it is not possible!
Related
The new Facebook developer integration should be really handy and easy, but i'm struggling with creating a test user or a regular Facebook user to get permissions to sign in my app.
I opened a "TestApp", and login in as a "Admin" works great!
The problem is adding more Facebook accounts and test users.
When i tried to add a Facebook account to "Testers" section, i get this (pending) message next to the persons name, and can not log in the app using Facebook with that user!
Same issue with adding a "Admin" to the app:
After this didn't work, i figured if i create a "TestUser" maybe i'll have better luck, but the test user does not show up when i'm trying to add him to the "Role".
Any one that can make this clear to me a-bit more will be much appreciated.
Thanks!
Found the answer, its a bit silly but if anyone else gets the same issue...
After you add a new user to the "Testers" he gets a notification that he must accept, so the "Pending" will go away, and the user will be activated.
This notification does not get to the Facebook home page, only to the "Developer section" of that user. As #rmp251 mentioned, that can be found on this page
Thanks for the help.
I just want to add few details on the answer but I cannot comment.
The test user need to register as Facebook developer (if he not reregistered already)
Link: https://developers.facebook.com/async/registration/
After that he need to approve the request from the app
Then he need to approve the request at this link
Link: https://developers.facebook.com/requests/
I was trying to add an administrator to a Page owned by a Gray account. The invitee would see a notification appear briefly, but it would vanish as soon as they clicked on the Notifications button, and would not show up in their list of notifications.
Workaround: The invitee can go here to see and accept the invite: https://www.facebook.com/pages/?category=invites
In case anyone is trying to add Instagram Test Users, there's also no documentation on where this "pending " request goes.
Log into the invited Instagram account in a web browser. Go to https://www.instagram.com/accounts/manage_access/. Click "Test Invites".
Log in from desktop to your instagram tester account. Press MORE then SETTING, then APPS AND WEBSITES and then you'll have a 4th tab TESTER. Also you have to add tester the instagram account that you want to display.
For some reason we need to provide a direct sign on link to our user by email.
something like:
www.website.com/user/sign_in/:hash
And the user click on the link he would be automatically sign in.
But I have no idea where to start and it doesn't seem to be built in the gem.
You'll want to use an auth token to sign the user in directly. This SO answer probably has all the details you need on getting this implemented properly.
I'm using Devise with my Rails app and I'm looking at using the Omniauth-Facbook gem. My app has views that show the users's by user name. What I haven't been able to figure out is how I can prompt a user for a user name when doing this.
I know that I can request this from Facebook, if the user has created a FB user name. Many people have not specified a user name for their FB account, so this does not seem like the best approach. I've read other answers which indicate that perhaps the email should be used instead, which works if the user name is solely for logging on, but this is obviously not a good idea if the user name is going to be shown on user views.
If anyone could provide guidance on how to best prompt or get a user name while registering someone through Omniauth-Facebook, that would be very appreciated. Thank you!
when you sign up for facebook, then check whether they have username in the facebook, if no,then just redirect to your path to update the username?
I'm doing a little experimentation. The end goal is to open Twitter in a new tab for a user that is already logged in.
I have gone down the oAuth route and I can post to twitter, retrieve tweets etc. but when I visit Twitter.com I still get the login page. I have a couple of questions
A) Is it possible to automaticaslly log a user in like this (I can see why it can't be but need to make sure)
B) Does anyone know of another way to acheive it?
When you redirect the user to twitter to authorize, send them to oauth/authenticate, instead.
This flow is called Sign in with Twitter.
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.