Web intent session not working


#1

a few days ago, the url link
https://twitter.com/intent/session?original_referer=https%3A%2F%2Ftwitter.com%2Fintent%2Ffollow%3Fscreen_name%3Dkfc&return_to=%2Fintent%2Ffollow%3Fscreen_name%3Dkfc&screen_name=kfc

is working,
and web page is http://ww3.sinaimg.cn/large/70f1e501jw1ee83yzc67tj20dc0m8jsp.jpg
but now, this url can not open, twitter return “Sorry, that page doesn’t exist!”

How can I handle this?
Thanks!


#2

What is your use case for directly referencing /intent/session instead of linking to a user intent?
https://dev.twitter.com/web/intents


#3

Thanks for your reply
for example, https://twitter.com/intent/user?screen_name=kfc
it’s include the user mini profile, but I do not need that,

I want to make a user to login twitter and then follow the twitter account(in the url screen_name) .

so I need a login page, after login, redirect to the twitter.com/screen_name page the follow him/her.

Thanks


#4

Does twitter close the session intent?

when I open https://twitter.com/intent/user
twitter remind me "required parameters"
when I open https://twitter.com/intent/session
twitter return “Sorry, that page doesn’t exist!”

Thanks!


#5

What you want is intent/follow. That has an inline login form with a one click “Sign in an Follow” button.

https://twitter.com/intent/follow?screen_name=kfc

I’ll work on updating the documentation about /intent/follow. Apologize for the missing documentation.


#6

Thank you very much for reply.
I checked that intent, but it expose the user follower and following.
I do not need that.

anyway, https://twitter.com/intent/session?return_to=%2Fintent%2Ffollow%3Fscreen_name%3Dkfc&screen_name=kfc
works normally now.

Thank you!


#7

We do not offer ways to follow without showing the the user’s profile with counts. The “mini profile” you refer to, contains information we consider as important to show the user before following.

I will advise you to stay away from using /intent/session directly. The use of intent/session is not documented and not guaranteed. Also, I don’t think the return_to param does what you expect.


#8

The follow Web Intent is the correct flow for your intended follow action. A logged in user will see a profile display similar to the user intent. A logged out user will see an inline sign in form which will perform the follow action on successful sign in, returning the user to the follow intent page in the now logged-in state.


#9