Forums / Cotonti / Extensions / [Release] Twitti v2.0 / Twitter Connect

12>>>

Connect and sign in to Cotonti with your Twitter account

GHengeveld
#1 2010-08-30 00:49
This is version 2.0 of Twitti. It uses OAuth to connect your Twitter account with your Cotonti account.

Features:
- Connect Twitter account with Cotonti account
- Easily register using Twitter account, getting profile data from Twitter
- Sign in to Cotonti with your Twitter account in one click

Note that it doesn't support the Twitti v1.0 features yet. Installing both is useless since Twitti v1.0 doesn't use OAuth so it's not supported by Twitter anymore. For Twitti v1.0 features you can use Twitter Widgets.

Application flow:
If you first use the 'Sign in with Twitter' button you will be sent to the registration page. The username will be pre-filled with the Twitter screen name. When you're done registering your profile will also contain location, signature (latest tweet) and occupation (Twitter bio) coming from your Twitter account. Your new Cotonti account will automatically be connected to the Twitter account you registered with.

Existing Cotonti users first have to login the regular way. To connect your Cotonti account with a Twitter account, go to your Cotonti profile page and click the Connect button. The next time you can use the 'Sign in with Twitter' button to login to Cotonti.

Installation:
- Upload files to your plugins dir
- Install plugin in the adminpanel
- Create a Twitter Application with read access
- Configure the plugin with the Application details provided by Twitter
- Update your skin to add tags as listed with the plugin details in the adminpanel

Note:
There is a bug in Genoa that you need to fix in order to use the plugin. See changeset 1294.
You can fix it yourself or just download and replace the entire file here).

Download here
Preview here (Top right corner. Thx to aiwass)



Also check out the Tweet Button plugin.

------------------------------------------------------------------------------------------------------------------

If you need help registering an app with Twitter, here's some explanation.

Application name
Can be anything, I suggest using your website name.

Description
Something like "Twitter app for {website name}" will do.

Application website
Absolute URL of your Cotonti website.

Organisation
Probably the website name or your business name.

Application type
Leave it set to 'browser'.

Callback URL
It's overriden by Twitti, so just put your Cotonti website URL here.

Access type
Twitti doesn't need write access (yet), but for feature compatibility you can select 'Read & Write'. If you don't want to ask this from your users you can choose 'Read-only'.

Application icon
Twitti doesn't come with an icon, so you can upload almost anything you want here. Keep in mind that this icon is shown to your users when they first connect to the application.

When you're done creating the application, you're taken to an overview page. Here you will find all sorts of information, including the Consumer Key and Consumer Secret. These need to be entered in the configuration of Twitti.

Dit bericht is bewerkt door Koradhil (2010-10-12 05:33, 13 jaren ago)
quicksel
#2 2010-08-30 01:40
Error:
Warning: require_once(oauth/twitteroauth/twitteroauth.php) [function.require-once]: failed to open stream: No such file or directory in E:\EasyPHP5.2.10\www\gelistiricimod\plugins\twitti\twitti.php on line 18
Hiç bir şey insan kadar yükselemez ve onun kadar alçalamaz.
Fil zinciriyle, at gemiyle, kadın da gönül rızasıyla tutulur.
GHengeveld
#3 2010-08-30 01:43
Sorry about that. Check twitti.php and replace line 18 with:
require_once($basedir.'/lib/twitteroauth.php');

Also in twitti.auth.php replace line 33 with:
require_once('plugins/twitti/lib/twitteroauth.php');

Updating the download file right away...
aiwass
#4 2010-08-30 01:51
Login failed (wrong name or password)

Error, the user name you provided isn't in the database or the password do not match!

Redirecting...

I get this after Allow access for Twitti
Take all that money that we spend on weapons and defences each year and instead spend it feeding and clothing and educating the poor of the world, which it would many times over, not one human being excluded, and we could explore space, together, both inner and outer, forever, in peace. - Bill Hicks

https://evlear.com
GHengeveld
#5 2010-08-30 01:51
Fixed the download

Added 48 seconds later:

Yes, was another bug (see line 33 of twitti.auth.php)
aiwass
#6 2010-08-30 01:54
# Koradhil : Fixed the download

Added 48 seconds later:

Yes, was another bug (see line 33 of twitti.auth.php)

Still getting the same problem as stated above.
Take all that money that we spend on weapons and defences each year and instead spend it feeding and clothing and educating the poor of the world, which it would many times over, not one human being excluded, and we could explore space, together, both inner and outer, forever, in peace. - Bill Hicks

https://evlear.com
GHengeveld
#7 2010-08-30 01:56
Check if all plugin parts are installed correctly (adminpanel).

Added 4 minutes later:

Oh wait, I forgot to mention there is a bug in Genoa that you need to fix in order to use it. See changeset 1294 (you can fix it yourself or just download the entire file here).

Dit bericht is bewerkt door Koradhil (2010-09-04 20:59, 13 jaren ago)
quicksel
#8 2010-08-30 02:02
thx
Hiç bir şey insan kadar yükselemez ve onun kadar alçalamaz.
Fil zinciriyle, at gemiyle, kadın da gönül rızasıyla tutulur.
GHengeveld
#9 2010-08-30 02:06
Sorry for the fuss, I'm not thinking straight anymore. I've fixed the download and updated the instructions above. I hope everything will now work as it should.
aiwass
#10 2010-08-30 02:10
This is strange. Now when I click the "Sign in with Twitter" and login @Twitter and Allow access for my application it reverts me to http://www.megamind.se/users.php?m=register is it supposed to do that?

The fields that are "pre-filled" are Username only.
Take all that money that we spend on weapons and defences each year and instead spend it feeding and clothing and educating the poor of the world, which it would many times over, not one human being excluded, and we could explore space, together, both inner and outer, forever, in peace. - Bill Hicks

https://evlear.com
GHengeveld
#11 2010-08-30 02:16
That's correct.

If you use the 'sign in with twitter' you will be sent to the registration page. Only username is pre-filled, but when you're done registering your profile will also contain location, signature (latest tweet) and occupation (twitter bio).

If you want to sign in to Cotonti with Twitti, you first have to login normally, go to your profile and use the button there to connect your Cotonti account with your Twitter account. The next time you login you can use the Sign in with Twitter button and it will log you into Cotonti instead of redirecting to the registration page. Obviously if you register through the Twitter button your new account will automatically be connected to your Twitter account.
quicksel
#12 2010-08-30 02:22
I did not understand anything from this plug-in
Hiç bir şey insan kadar yükselemez ve onun kadar alçalamaz.
Fil zinciriyle, at gemiyle, kadın da gönül rızasıyla tutulur.
GHengeveld
#13 2010-08-30 02:26
Did you install it correctly and completed all the installation steps? (including adding the tags)

I cannot help you if you don't explain exactly what the problem is.

@aiwass: I just registered at your site with the twitter button, I was able to login with the twitter button also. It seems everything works well now.
aiwass
#14 2010-08-30 02:30
@Koradhil: Yes, now it works, when you explained the users.php?m=register it became clear.
Take all that money that we spend on weapons and defences each year and instead spend it feeding and clothing and educating the poor of the world, which it would many times over, not one human being excluded, and we could explore space, together, both inner and outer, forever, in peace. - Bill Hicks

https://evlear.com
GHengeveld
#15 2010-08-30 02:43
A message at the registration page telling that you have to connect through your profile would be good.

Update: added some information about the application flow to the topicstart.

Dit bericht is bewerkt door Koradhil (2010-08-30 02:53, 13 jaren ago)

12>>>