Postponed
Project:
Contact Importer
Version:
6.x-1.2
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
8 Dec 2009 at 19:41 UTC
Updated:
27 Jan 2012 at 14:39 UTC
I use the Contact Importer module with the OpenInviter engine. The form I use comes from the Invite module (email-field). For email providers the lookup of contacts and import of email addresses works perfect.
For social network sites I have a different experience. The lookup does what it has to do, but after selecting some contacts/friends, their user-ids (and not email addresses) are populated in the Invite form. Trying to send an invite message to these user-ids doesn't work, nothing happens. No error messages, nothing.
Does anyone have any clue how to solve this?
Comments
Comment #1
hadsie commentedI unfortunately don't know of a good way to solve this problem. Each social network has it's own way to send messages to users. In the case of facebook, for example. I believe that openinviter returns a link to the user mail url, which could potentially have data sent to and send a message to the user that way. Since openinviter logs the specified account into facebook there is a possibility that this would work. Others just send back uids as you said here. Because openinviter only retrieves that type of information the rest is left to the user of the data (i.e. the site admin or builder) to figure out what to do with it.
In this case the Invite module would need to have support for each social networks data as returned by openinviter in order to send a message to them, which I don't think is really feasible.
I think the first thing that's needed is for openinviter to return consistent data for each social network. That way there would need to be just a single implementation that could handle all of the social networks.
For now though, the only "solution" I have is to disable any social networks from being used, and in fact I may do that in the openinviter engine code and just add a note to the README to prevent more confusion like this.
Comment #2
dalinAgreed. Social networks are a tough cookie to crumble. We would probably need to integrate with Gigya or Facebook Connect if we'd want to actually send messages through these networks.
Comment #3
altparty commented+1 for Gigya. They already support a couple of social networks and more to come.
Comment #4
hadsie commentedI've committed code for this that prevents the openinviter engine from listing social networks for the time being. I'm marking this as postponed for now until I have more time to implement something workable.
Comment #5
netbabu commentedDoes dcl importer module use Gigya to support social netowrks? Is it very difficult to copy code from dcl importer module and adapt it to Contact Importer module?
Comment #6
dalinNo DCL doesn't use Gigya. To use Gigya you'd need to create a new engine for Contact Importer. The OpenInviter engine in Contact Importer was a straight copy from DCL. The social networks are disabled because the underlying library - OpenInviter doesn't handle them consistently. You are welcome to try and sort it out and submit a patch.
Comment #7
hadsie commented@netbabu, unless openinviter has somehow updated their code to import email addresses from social networks, which I don't even think is possible with networks like twitter, I don't believe this is working in dcl_importer. Have you actually been able to send messages to users on social networks using dcl importer?
Comment #8
stg11 commentedI suggest if/when there is time to look at this, Twitter and Facebook are the main or first focus for getting the social networks working. This would be a really great feature to have.
Comment #9
oxford-dev commentedI absolutely agree with #18
Comment #10
Shadlington commentedSubscribing
+1 for Twitter & FB
Comment #11
dalinComment #12
almeidama commentedSubscribing
+1 for FB and TW
Comment #13
dalin@almeidama by assigning this to yourself you are claiming to build the code for this issue, is that what you intended? If so you should also change the status to 'active'.
Comment #14
almeidama commentedsorry!
just noticed now. was a mistake.
I would like to help but I have no knowledge to solve this problem
sorry
Comment #15
dashah commentedhi...
i just wanted to know..
if there are authentication problems with facebook, then can we use http://drupal.org/project/oauth module for authentication purpose ?
will it solve the problem ?
thanks..
Comment #16
dalinYou would first have to write a library (Think OpenInviter, or Octazen) that would connect via OAuth and fetch the contacts. Then you would write an retrieval engine for Contact Importer (Think Octazen Retrieval Engine module or OpenInviter Retrieval Engine module). Or I suppose you could combine them if you didn't require the library to work on its own.
Comment #17
jeffwidman commentedsub
Comment #18
brunorios1 commentedsubscribing.
Comment #19
hypertext200sub
Comment #20
mattcasey commentedsub
Comment #21
held69 commentedsub
Comment #22
socialnicheguru commentedcould there be a way to connect with openselector module (gigya has a $15k/year cost if you get over 1000 subscribers)?
There would be a button to connect with your social network, the openselector box would popup, and get selected to connect.
Then I believe you can invite friends, etc.
Comment #23
dalinGigya is a closed tool. i.e. You can only use it to send messages out, you can't use it to pull email addresses out of your social network. So there is no way to integrate with Contact Importer.