Needs work
Project:
Twitter
Version:
7.x-5.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
14 Nov 2012 at 10:14 UTC
Updated:
22 Aug 2015 at 13:20 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
juampynr commentedSetting the right status.
Comment #2
13rac1 commentedPatch applies with offset to 7.x-5.x. Should be a git apply patch.
Comment #3
n20 commentedwith the patch applyed, fetching of the picture works only at second login for me. On the initial login/authorization of the app there is no picture fetched.
Comment #4
n20 commentedI figured out that for a brand new user loginin/signup and authorizing the twitter app for the first time,
twitter_account_save()is called aftertwitter_signin_get_picture(). But intwitter_signin_get_picture()we try to load already the twitter user withtwitter_account_load(). So basically we try to load the data from tabletwitter_userbefore it's even saved.I have trouble to find what exactly calls
twitter_account_save()and when.Comment #5
n20 commentedOk, i created a patch for 7.x-6.x-dev wich includes the previous patch. The picture import works now also on the very first signup/login... at least for me.
Instead of
$response['user_id']i used$account->namewhen loading the twitter account of the database. Also$_SESSION['twitter']['values']wasn't set when running_twitter_signin_add_account(). Because of this the entrys for the tabletwitter_accountare filled always after we are already processedtwitter_signin_get_picture. However, i wonder where the $_SESSION should have benn filled with values? I just set them right before we save the user with the response data.Apply patch with
patch < [patch-path]when downloaded to twitter_signunp or withpatch -p0 < [patch-path]when in twitter module root.cheers, N20
Comment #6
svanou commentedHi,
I tried the patch but it seems the picture disappear when user create a password with email and login again after via twitter.
Would you know how to fix this :) please ?
Thanks! Sylvain
Comment #7
svanou commentedok sorry this happen when a user changes his username. For now I will disallow my user to do so :P
thanks!
Comment #8
svanou commentedhey,
I'm trying to get a bigger picture from my users twitter account, i tried to play with max image size but could not make it work. Do you have any ideas on how to achieve this please ? An example (my profile) : http://bit.ly/1A8GkNr Thanks a lot ! Sylvain
Comment #9
svanou commentedI think i'm getting closer now https://dev.twitter.com/rest/reference/get/users/show by default twitter will send you the 48x48 pic, instead the url should be appended by _bigger or other arguments. Anyone know how can we change this please?
Comment #10
damienmckennaComment #13
damienmckennaRerolled.