CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion »
  • Google Summer of Code »
  • [GSOC 2015] Integration with Social Media
Pages: 1 2 [3]

Author Topic: [GSOC 2015] Integration with Social Media  (Read 5160 times)

s0014

  • I post occasionally
  • **
  • Posts: 56
  • Karma: 2
  • CiviCRM version: 4.4.5
  • CMS version: Drupal 7.28
  • MySQL version: 5.5.37
  • PHP version: 5.5.9
Re: [GSOC 2015] Integration with Social Media
June 06, 2015, 10:18:37 am
Hey Emily,

I am sorry for not being able to update this thread. I will make sure this post can give the outline for whatever that has happened in the project. Also, I will be posting daily update on this thread and hence deleted the other one.

So I have had two meetings with Chris and Beckett and both of them have been really helpful. The last meeting concluded with the following decisions.
  • We will focus on social login within CiviCRM that means we will focus on making a platform independent extension.
  • So open links for event registrations, donations etc will have a Social Login button. Which will enable user to register for event using one click.

I have spent most of my time till now in reading the documentation of extension creation and have created one myself. I have also created database schema for storing the social login related information.

One thing I would like a review on is, should I store the data received from social media directly to contact table  or instead store them in the extension specific tables as well. One reason I was thinking of storing the data in extension as well is, that multiple social account can be associated with a single email ID and these can provide different data we can let the user to choose what info it would like to use for registration.

Also, I am trying to understand how one registers for an event and where should I start looking to, as in which hooks to use for the same.
Sid
DataViz Project, GSoC 2014

s0014

  • I post occasionally
  • **
  • Posts: 56
  • Karma: 2
  • CiviCRM version: 4.4.5
  • CMS version: Drupal 7.28
  • MySQL version: 5.5.37
  • PHP version: 5.5.9
Re: [GSOC 2015] Integration with Social Media
June 20, 2015, 01:10:08 pm
Project State:

I am currently working on the Register via Google Plus / Facebook button. This button will fetch as much data as possible from the social media profile and create/update a corresponding contact with the same. And then create a participant entry for the given event.

Currently I am storing the social media app/project credential in a new table, but I think the right place to store them is in settings. I am trying to find a way to add these details to setting, if someone can help.
Sid
DataViz Project, GSoC 2014

s0014

  • I post occasionally
  • **
  • Posts: 56
  • Karma: 2
  • CiviCRM version: 4.4.5
  • CMS version: Drupal 7.28
  • MySQL version: 5.5.37
  • PHP version: 5.5.9
Re: [GSOC 2015] Integration with Social Media
June 21, 2015, 01:12:08 pm
So, I have found a way to add the credentials in the settings table. And I am able to access them using the settings api, can someone suggest a method that will allow me to show these settings in Admin menu, I am not really able to get them there.

Also, I have created the sample application for facebook connect, now trying to include that in civi
Sid
DataViz Project, GSoC 2014

s0014

  • I post occasionally
  • **
  • Posts: 56
  • Karma: 2
  • CiviCRM version: 4.4.5
  • CMS version: Drupal 7.28
  • MySQL version: 5.5.37
  • PHP version: 5.5.9
Re: [GSOC 2015] Integration with Social Media
June 23, 2015, 01:19:39 pm
So I am currently working on logging in a user in CiviCRM using Facebook. The flow works like this:

The user is taken to a page where some of the following information is stored.
>The page where the login was initiated. (As this will be the page user will be redirected to back)
>Any other options which needs to be carry forward

From, here the user is redirected to Facebook where it is asked to login to the application and the required permissions. It is then redirected to a callback page where it receives a code which is valid for one login. Now the server gets all the details to this page and create a user object and save it.

I am thinking of now sending back the user to the earlier page with the contact id and the checksum. Something which is described in the following link.
https://aghstrategies.com/content/how-create-one-click-personalized-links-civicrm-emails

Now I need to keep track of if someone is logged in, is there anything I can store this constraint into or I need something, or should I directly use SESSION and store it there.
Sid
DataViz Project, GSoC 2014

Chris Burgess

  • Ask me questions
  • ****
  • Posts: 675
  • Karma: 59
Re: [GSOC 2015] Integration with Social Media
June 23, 2015, 02:31:56 pm
That's a good article to refer to.

I reposted your question at http://civicrm.stackexchange.com/questions/3483/how-can-i-programmatically-use-checksum-authentication/3484#3484 and answered it there - that way you may get better input from others in the community, and the documentation is available for future users as well.

To get the best results, I'd encourage you to *discuss* the GSoC project here, and post *specific technical questions* over on the stack exchange site. But do whatever works for you!

Discussion: "Do we care about implementing Bebo support in this round?"
Technical question: "Bebo provides only a full name, how can I translate this data to CiviCRM's first/last name model?"

etc
« Last Edit: June 23, 2015, 02:34:50 pm by Chris Burgess »
@xurizaemon ● www.fuzion.co.nz

s0014

  • I post occasionally
  • **
  • Posts: 56
  • Karma: 2
  • CiviCRM version: 4.4.5
  • CMS version: Drupal 7.28
  • MySQL version: 5.5.37
  • PHP version: 5.5.9
Re: [GSOC 2015] Integration with Social Media
June 24, 2015, 11:43:56 am
Thanks Chris for the heads up.

I have been working on the project and now I have successfully retrieved data and created a contact. I am working on sending them back. I will make the project to similar level for google plus tomorrow and will move further. I think the project is not at the right pace.

I will also start working on a blog for gauging interest?
Sid
DataViz Project, GSoC 2014

s0014

  • I post occasionally
  • **
  • Posts: 56
  • Karma: 2
  • CiviCRM version: 4.4.5
  • CMS version: Drupal 7.28
  • MySQL version: 5.5.37
  • PHP version: 5.5.9
Re: [GSOC 2015] Integration with Social Media
June 27, 2015, 01:23:25 pm
The extension has started to take shape and the current status of extension is
  • Create a table while installing which has all the fields relevent to both Facebook and Google Plus login. I have also created the corresponding DAO file which will help in creation of this object, this was achieved by using GenCode.php present in the xml folder of the development version. I have also created a Readme which specify how to do that.
  • Created Setting Fields. I have created setting fields and a form which takes them as input. This form is added to the administer menu as well.
  • Using these fields, a user can go to a certain URL, this URL do the talking from facebook and Google plus access_tokens and other required data. 
  • Currently this data is printed but will be soon added to database and log the user in.
Sid
DataViz Project, GSoC 2014

JonGold

  • Ask me questions
  • ****
  • Posts: 638
  • Karma: 81
    • Palante Technology
  • CiviCRM version: 4.1 to the latest
  • CMS version: Drupal 6-7, Wordpress 4.0+
  • PHP version: PHP 5.3-5.5
Re: [GSOC 2015] Integration with Social Media
September 22, 2015, 07:13:02 am
Hi everyone - what's the latest status on this project?
Sign up to StackExchange and get free expert CiviCRM advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

s0014

  • I post occasionally
  • **
  • Posts: 56
  • Karma: 2
  • CiviCRM version: 4.4.5
  • CMS version: Drupal 7.28
  • MySQL version: 5.5.37
  • PHP version: 5.5.9
Re: [GSOC 2015] Integration with Social Media
September 25, 2015, 10:02:34 am
Hi JonGold,

Thanks for showing interest. I have an extension which enables users to autofil public forms in place with help of Facebook or Google Plus data, currently working on documentation for the same.
The future plan for the extension is to add more social backend and create a minimal api to get access to some social data through the extension.
Sid
DataViz Project, GSoC 2014

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: [GSOC 2015] Integration with Social Media
September 25, 2015, 11:40:37 am
Hey sid,

Looks awesome, What's the link to your extension?

X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

Chris Burgess

  • Ask me questions
  • ****
  • Posts: 675
  • Karma: 59
Re: [GSOC 2015] Integration with Social Media
March 12, 2016, 07:17:22 pm
Here's a late reply - links to the two CiviCRM Social extensions generated in GSoC 2015.

  • https://github.com/siddharthg/org.civicrm.civisocial (Siddharth's extension)
  • https://github.com/rolencea/org.civicrm.civisocial2 (Aka Rolence's extension)
@xurizaemon ● www.fuzion.co.nz

s0014

  • I post occasionally
  • **
  • Posts: 56
  • Karma: 2
  • CiviCRM version: 4.4.5
  • CMS version: Drupal 7.28
  • MySQL version: 5.5.37
  • PHP version: 5.5.9
Re: [GSOC 2015] Integration with Social Media
March 13, 2016, 01:02:58 am
Adding to Chris's reply.

If anyone need any help in understanding the scope of extension or the code, you can ask me here or on IRC.
Sid
DataViz Project, GSoC 2014

chrismors

  • I’m new here
  • *
  • Posts: 2
  • Karma: 0
  • CiviCRM version: N/A
  • CMS version: N/A
  • MySQL version: N/A
  • PHP version: N/A
Re: [GSOC 2015] Integration with Social Media
March 15, 2016, 04:54:33 am
Hi Sid

Yes please could you give me some background on this project; where have you got to with it and what is in store for GSoC 2016 with these extensions.

Thanks

Chris

Pages: 1 2 [3]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion »
  • Google Summer of Code »
  • [GSOC 2015] Integration with Social Media

This forum was archived on 2017-11-26.