Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Forum Stats

Members
Total Members: 4255
Latest: andreios
New This Month: 3
New This Week: 1
New Today: 0
Stats
Total Posts: 43259
Total Topics: 7518
Most Online Today: 177
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 183
Total: 183

Author Topic: Failed connect to twitter  (Read 12041 times)

0 Members and 1 Guest are viewing this topic.

Offline pavelk

  • Member
  • *
  • Posts: 33
    • View Profile
Failed connect to twitter
« on: February 16, 2016, 07:22:27 am »
I'm create a twitter application in http://dev.twitter.com/apps
and paste Twitter Consumer Key and Twitter Consumer Secret
in settings to the current fields,
try sign and get error
Quote
I can not connect to Twitter. Refresh the page and try again. - 401
What did I do wrong or forgotten?
« Last Edit: February 16, 2016, 09:39:51 am by pavelk »

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16436
    • View Profile
Re: Failed connect to twitter
« Reply #1 on: February 16, 2016, 07:54:52 am »
Just want to check what SMF version and you are using the latest gallery version right?
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline pavelk

  • Member
  • *
  • Posts: 33
    • View Profile
Re: Failed connect to twitter
« Reply #2 on: February 16, 2016, 09:32:37 am »
Just want to check what SMF version and you are using the latest gallery version right?
SMF 2.0.11 and  SMF Gallery Pro 7.1

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16436
    • View Profile
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline pavelk

  • Member
  • *
  • Posts: 33
    • View Profile
Re: Failed connect to twitter
« Reply #4 on: February 16, 2016, 12:45:55 pm »
According to twitter that is bad login information for error 401
https://dev.twitter.com/overview/api/response-codes

http://stackoverflow.com/questions/19095257/using-twython-to-send-a-tweet-twitter-api-error/19196583#19196583
only set permissions from "Read and Write" to "Read, Write and Access direct messages" in twitter application?
I'm do it, but it's now work yet.

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16436
    • View Profile
Re: Failed connect to twitter
« Reply #5 on: February 16, 2016, 12:59:08 pm »
Same error?
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline pavelk

  • Member
  • *
  • Posts: 33
    • View Profile
Re: Failed connect to twitter
« Reply #6 on: February 16, 2016, 01:21:17 pm »
Same error?
yes. 401.
I'm test python script - work.
But in python script I'm must specify the  "Access Token" and "Access Token Secret", not only "Twitter Consumer Key" and "Twitter Consumer Secret" such as in gallery twitter settings!
#####
##+##
#####
in smf log:
Quote
/index.php?action=gallery;sa=twittersignin
8: Undefined index: oauth_token
file /Sources/twitteroauth.php
where it sets?
« Last Edit: February 16, 2016, 01:26:20 pm by pavelk »

Offline pavelk

  • Member
  • *
  • Posts: 33
    • View Profile
Re: Failed connect to twitter
« Reply #7 on: February 19, 2016, 05:01:52 am »
:(
Somebody tell me where to "Access Token" and "Access Token Secret" setup?

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16436
    • View Profile
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline pavelk

  • Member
  • *
  • Posts: 33
    • View Profile
Re: Failed connect to twitter
« Reply #9 on: February 26, 2016, 12:40:42 am »
https://dev.twitter.com/oauth/overview/application-owner-access-tokens
Where  "Access Token" and "Access Token Secret" sets for gallery?
In gallery settings only
"Twitter Consumer Key"
"Twitter Consumer Secret"
sets.

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16436
    • View Profile
Re: Failed connect to twitter
« Reply #10 on: February 26, 2016, 08:30:43 am »
In the smf_settings table.   Normally the system auto gets them after you click signin once you have the consumer keys set...
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline pavelk

  • Member
  • *
  • Posts: 33
    • View Profile
Re: Failed connect to twitter
« Reply #11 on: February 27, 2016, 07:15:17 am »
In the smf_settings table.   Normally the system auto gets them after you click signin once you have the consumer keys set...
The gallery_oauth_token' and 'gallery_oauth_token_secret' variable.

I'm set them manually, but has errors in log any way :(
Quote
8: Undefined index: oauth_token
and
Quote
8: Undefined index: oauth_token_secret

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16436
    • View Profile
Re: Failed connect to twitter
« Reply #12 on: February 27, 2016, 02:48:38 pm »
Hmm make sure when inserting into the smf_setting table it is called
gallery_oauth_token
gallery_oauth_token_secret
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline pavelk

  • Member
  • *
  • Posts: 33
    • View Profile
Re: Failed connect to twitter
« Reply #13 on: February 27, 2016, 03:45:14 pm »
Hmm make sure when inserting into the smf_setting table it is called
gallery_oauth_token
gallery_oauth_token_secret
Yes, I'm set it, but any way get 401 error, and after fields reset to zero
 :-\

Offline pavelk

  • Member
  • *
  • Posts: 33
    • View Profile
Re: Failed connect to twitter
« Reply #14 on: December 14, 2016, 06:42:24 am »
well... error not fixed  :(

 

Related Topics

  Subject / Started by Replies Last post
8 Replies
8841 Views
Last post July 28, 2009, 05:54:55 am
by wildenborch
1 Replies
3812 Views
Last post November 11, 2011, 09:50:01 am
by SMFHacks
0 Replies
8656 Views
Last post June 06, 2012, 10:33:46 pm
by SMFHacks
5 Replies
3713 Views
Last post May 04, 2013, 01:08:57 pm
by SMFHacks
14 Replies
7814 Views
Last post February 20, 2015, 04:43:41 am
by trifox

+- Recent Topics

No thumbnails on new uploads by SMFHacks
March 27, 2024, 02:10:41 pm

Display the Contact Page for guests by SMFHacks
March 27, 2024, 10:55:43 am

is it possible to add support for odysee.com by fvlog19
March 21, 2024, 08:47:51 am

Request for admin notification by davejo
March 10, 2024, 01:31:59 am

I need help with torrent upload by Ineedsmfhelp
March 09, 2024, 10:01:13 pm

an idea for new mod (( content type with different display )) by SMFHacks
February 27, 2024, 01:36:27 pm

[Mod] RSS Feed Poster by SMFHacks
February 27, 2024, 11:57:18 am

find duplicate pictures by fvlog19
February 14, 2024, 02:22:40 pm

Error uploading video. by SMFHacks
February 08, 2024, 02:04:16 pm

Gallery icon as last added image by fvlog19
February 01, 2024, 01:04:56 pm

Powered by EzPortal